spring-opentelemetry 0.4.4

Integration of spring-rs framework and open-telemetry
Documentation

crates.io Documentation

Dependencies

spring-opentelemetry = "<version>"

OTEL uses the W3C format to propagate context information for tracing by default.

Optional features:

  • jaeger: Use jaeger format to propagate context
  • zipkin: Use zipkin format to propagate context
  • more-resource: Add more resource information, such as host Host, operating system, process information

Configuration

[opentelemetry]
enable = false    # Whether to enable the plugin at runtime

For other configurations, it is recommended to use the environment variables in the OTEL specification. For details, please refer to the OpenTelemetry SDK documentation:

For complete code, refer to opentelemetry-example

Note: opentelemetry-rust is not stable yet, and some features of tracing need to be integrated. The plugin will continue to track the relevant dynamics of opentelemetry-rust and tracing, and update them in a timely manner.