Skip to content

Commit

Permalink
inherit SDK SpanProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeGoldsmith committed Apr 29, 2024
1 parent 9fef035 commit 8877e84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# SPDX-License-Identifier: Apache-2.0

require 'opentelemetry-api'
require 'opentelemetry-sdk'

module OpenTelemetry
module Processor
Expand Down Expand Up @@ -40,7 +41,7 @@ module Baggage
# )
# )
# end
class BaggageSpanProcessor
class BaggageSpanProcessor < OpenTelemetry::SDK::Trace::SpanProcessor
# Called when a `Span` is started, adds Baggage keys/values to the span as attributes.
#
# @param [Span] span the `Span` that just started, expected to conform
Expand Down
1 change: 1 addition & 0 deletions processor/baggage/opentelemetry-processor-baggage.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.0'

spec.add_dependency 'opentelemetry-api', '~> 1.0'
spec.add_dependency 'opentelemetry-sdk', '~> 1.0'

spec.add_development_dependency 'bundler', '~> 2.4'
spec.add_development_dependency 'minitest', '~> 5.0'
Expand Down

0 comments on commit 8877e84

Please sign in to comment.