-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/bundler/resources/google_cloud_pl…
…atform/webmock-tw-3.19.1
- Loading branch information
Showing
10 changed files
with
77 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
toys_version! ">= 0.14.5" | ||
toys_version! "0.14.7" | ||
|
||
load_git remote: "https://github.com/dazuma/toys.git", | ||
path: ".toys/release", | ||
as: "release", | ||
commit: "toys/v0.14.7", | ||
update: 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
module OpenTelemetry | ||
module Instrumentation | ||
module Bunny | ||
VERSION = '0.21.0' | ||
VERSION = '0.21.1' | ||
end | ||
end | ||
end |
36 changes: 36 additions & 0 deletions
36
instrumentation/bunny/test/opentelemetry/instrumentation/bunny/patch_helpers_test.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# frozen_string_literal: true | ||
|
||
# Copyright The OpenTelemetry Authors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
require_relative '../../../../lib/opentelemetry/instrumentation/bunny/patch_helpers' | ||
|
||
describe OpenTelemetry::Instrumentation::Bunny::PatchHelpers do | ||
let(:properties) do | ||
{ | ||
headers: { | ||
'traceparent' => '00-eab67ae26433f603121bd5674149d9e1-2007f3325d3cb6d6-01' | ||
}, | ||
tracer_receive_headers: { | ||
'traceparent' => '00-cd52775b3cb38931adf5fa880f890c25-cddb52a470027489-01' | ||
} | ||
} | ||
end | ||
|
||
describe '.extract_context' do | ||
it 'returns the parent context with links when headers from producer exists' do | ||
parent_context, links = OpenTelemetry::Instrumentation::Bunny::PatchHelpers.extract_context(properties) | ||
_(parent_context).must_be_instance_of(OpenTelemetry::Context) | ||
_(links).must_be_instance_of(Array) | ||
_(links.first).must_be_instance_of(OpenTelemetry::Trace::Link) | ||
end | ||
|
||
it 'returns the parent context with no links when headers from producer not present' do | ||
properties.delete(:headers) | ||
parent_context, links = OpenTelemetry::Instrumentation::Bunny::PatchHelpers.extract_context(properties) | ||
_(parent_context).must_be_instance_of(OpenTelemetry::Context) | ||
_(links).must_be_nil | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ | |
module OpenTelemetry | ||
module Instrumentation | ||
module GraphQL | ||
VERSION = '0.26.6' | ||
VERSION = '0.26.7' | ||
end | ||
end | ||
end |