Eric Woolsey

Results 136 comments of Eric Woolsey

This is the information I'm getting in loki, with no trace_id information. Logs are being generated with this code ```rust let logs = opentelemetry_otlp::new_pipeline() .logging() .with_exporter(opentelemetry_otlp::new_exporter().http()) .with_log_config( opentelemetry_sdk::logs::config().with_resource(Resource::new(vec![ KeyValue::new("service.name", "liquidation-bot-rs"),...

> Yes - this should be correlated automatically, as long as the application is instrumented using opentelemetry tracing (either through [tracing-opentelemetry](https://github.com/tokio-rs/tracing-opentelemetry) or directly using opentelemetry tracing api). Not if it...

> Can you use stdout exporter and share the output? We just want to confirm if this issue is with OTLP or Loki itself. This code somehow results in no...

collector logs are scarce ``` otel-collector] [2023-11-16 07:19:57] 2023-11-16T07:19:57.702Z info [email protected]/telemetry.go:84 Setting up own telemetry... [otel-collector] [2023-11-16 07:19:57] 2023-11-16T07:19:57.702Z info [email protected]/telemetry.go:201 Serving Prometheus metrics {"address": ":8888", "level": "Basic"} [otel-collector] [2023-11-16...

> > Can you use stdout exporter and share the output? We just want to confirm if this issue is with OTLP or Loki itself. > > This code somehow...

debug logs ``` 2023-11-16T18:21:31.684Z info [email protected]/telemetry.go:84 Setting up own telemetry... 2023-11-16T18:21:31.685Z info [email protected]/telemetry.go:201 Serving Prometheus metrics {"address": ":8888", "level": "Basic"} 2023-11-16T18:21:31.685Z info [email protected]/exporter.go:275 Deprecated component. Will be removed in future...

> > Follow this example as-is https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-otlp/examples/basic-otlp/README.md#manual > > You should see logs correctly correlated to traces https://github.com/open-telemetry/opentelemetry-rust/blob/main/opentelemetry-otlp/examples/basic-otlp/src/main.rs#L126 > > @ewoolsey Could you start with the above example (which we...

> I don't see the tracing-opentelemetry subscriber configured in the above example before emitting spans. ah right I just blindly ran that example since you linked it. Anyhow, I found...

> > Should #[instrument] not be taking care of this for me? > > That is a question for tracing-opentelemetry repo! It should have worked, but might need additional setups/config,...