Skip to content

Commit

Permalink
yEnable thrift propagator
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Riles committed May 6, 2024
1 parent 78a1474 commit e8e6d3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion baseplate/server/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
from baseplate.lib.log_formatter import CustomJsonFormatter
from baseplate.lib.prometheus_metrics import is_metrics_enabled
from baseplate.lib.propagator_redditb3_http import RedditB3HTTPFormat
from baseplate.lib.propagator_redditb3_thrift import RedditB3ThriftFormat
from baseplate.server import einhorn
from baseplate.server import reloader
from baseplate.server.net import bind_socket
Expand Down Expand Up @@ -275,7 +276,7 @@ def configure_tracing(config: Configuration) -> None:

otlp_exporter = OTLPSpanExporter(endpoint=config.tracing["endpoint"], insecure=insecure)
propagate.set_global_textmap(
CompositePropagator([RedditB3HTTPFormat(), TraceContextTextMapPropagator()])
CompositePropagator([RedditB3ThriftFormat(), RedditB3HTTPFormat(), TraceContextTextMapPropagator()])
)
provider = TracerProvider(sampler=sampler, resource=resource)
provider.add_span_processor(
Expand Down

0 comments on commit e8e6d3d

Please sign in to comment.