Skip to content

Support Rust among our SDKs #6756

@jay-khatri

Description

@jay-khatri

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions