Skip to content

Commit

Permalink
fix: Ruby 3.0 compatibility for generate_r (#1538)
Browse files Browse the repository at this point in the history
* fix: Ruby 3.0 compatibility for generate_r

* Actually test the sdk_experimental gem in CI

* dir name doesn't match gemspec name
  • Loading branch information
fbogsany authored Nov 2, 2023
1 parent 6457553 commit 39a7e7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- opentelemetry-metrics-api
- opentelemetry-registry
- opentelemetry-sdk
- opentelemetry-sdk-experimental
- opentelemetry-semantic_conventions
- opentelemetry-test-helpers
os:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def decimal(str)
end

def generate_r(trace_id)
x = trace_id.unpack1('Q>', offset: 8) | 0x3
x = trace_id.unpack1('@8Q>') | 0x3
64 - x.bit_length
end
end
Expand Down

0 comments on commit 39a7e7f

Please sign in to comment.