You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using both tracing and fastrace in my project, and want to export spans to OpenTelemetry.
I setup the tracing and opentelemetry with the following code in my project:
let span_exporter = opentelemetry_otlp::SpanExporter::builder().with_tonic().with_endpoint(otel_endpoint).build().expect("could not build span exporter");let trace_config = opentelemetry_sdk::trace::Config::default().with_sampler(ChromaShouldSample).with_resource(resource.clone());let tracer_provider = opentelemetry_sdk::trace::TracerProvider::builder().with_batch_exporter(span_exporter, opentelemetry_sdk::runtime::Tokio).with_config(trace_config).build();let tracer = tracer_provider.tracer(service_name.clone());
When I'm setting up as fastrace-opentelemetry readme says, I found the SpanExporter cannot be cloned. I must create another SpanExporter with another endpoint.
May I ask is there anyway to share the SpanExporter with tracing-opentelemetry? Thank you. 🥰
The text was updated successfully, but these errors were encountered:
Hi, thanks for the cool lib!
I'm using both tracing and fastrace in my project, and want to export spans to OpenTelemetry.
I setup the tracing and opentelemetry with the following code in my project:
When I'm setting up as
fastrace-opentelemetry
readme says, I found theSpanExporter
cannot be cloned. I must create anotherSpanExporter
with another endpoint.May I ask is there anyway to share the
SpanExporter
withtracing-opentelemetry
? Thank you. 🥰The text was updated successfully, but these errors were encountered: