-
Notifications
You must be signed in to change notification settings - Fork 455
Closed
Labels
Description
The SDK should implement the following:
- a way to H.recordException following the otel exception reporting spec.
- a way to instrument Rust logging libraries. if the Rust sdk supports logs natively, it would be great to route them to as LogRecords on v1/logs, but if not, fine to support them as trace events.
as part of the exception implementation, if rust http libraries follow a common format for tracing HTTP request handlers, it would be great to wrap those as native otel traces.
We should build the SDK based on the opentelemetry sdk. There is a guide for rust http specifically, so we should follow best practices here in terms of collecting the available data.
Requirements:
- a init method that sets up the Rust instrumentation to collect console logs automatically.
- a recordException method that allows capturing errors manually (see java sdk as an example).
- Rust HTTP instrumentation that will hook into the framework to collect errors / logs automatically, without the need for a user to manually report errors.
Some getting started pointers on our docs! Please let us know if you have feedback, I'm happy to add to them.
mkarbo