diff --git a/CHANGELOG.md b/CHANGELOG.md index a7bd015..efb7203 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ Changelog for the gruf-lightstep gem. ### Pending Release +- Use default value of `'true'` for the `ot-tracer-sampled` value in the client interceptor instead of `'1'` + ### 1.7.0 - Add support for Ruby 3.2 diff --git a/lib/gruf/lightstep/client_interceptor.rb b/lib/gruf/lightstep/client_interceptor.rb index 44bc847..bd18bd1 100644 --- a/lib/gruf/lightstep/client_interceptor.rb +++ b/lib/gruf/lightstep/client_interceptor.rb @@ -28,7 +28,7 @@ def call(request_context:) logger.debug "[gruf-lightstep] Injecting current active span #{span_data[:span_guid]} into outbound request context for #{request_context.method_name}" request_context.metadata['ot-tracer-spanid'] = span_data[:span_guid].to_s request_context.metadata['ot-tracer-traceid'] = span_data[:trace_guid].to_s - request_context.metadata['ot-tracer-sampled'] = '1' + request_context.metadata['ot-tracer-sampled'] = 'true' end yield