Ruby OpenTracing Instrumentation
이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.To set up Datadog with OpenTracing, see the Ruby Quickstart for OpenTracing for details.
Configuring Datadog tracer settings
The underlying Datadog tracer can be configured by passing options (which match Datadog::Tracer
) when configuring the global tracer:
# Where `options` is a Hash of options provided to Datadog::Tracer
OpenTracing.global_tracer = Datadog::OpenTracer::Tracer.new(options)
It can also be configured by using Datadog.configure
as described in the Ruby tracer settings section.
Activating and configuring integrations
By default, configuring OpenTracing with Datadog does not automatically activate any additional instrumentation provided by Datadog. You will only receive spans and traces from OpenTracing instrumentation you have in your application.
However, additional instrumentation provided by Datadog can be activated alongside OpenTracing using Datadog.configure
, which can be used to enhance your tracing further. To enable this, see Ruby integration instrumentation for more details.
Type | Supported? | Additional information |
---|
OpenTracing::FORMAT_TEXT_MAP | Yes | |
OpenTracing::FORMAT_RACK | Yes | Because of the loss of resolution in the Rack format, note that baggage items with names containing either upper case characters or - are be converted to lower case and _ in a round-trip, respectively. Datadog recommends avoiding these characters or accommodating accordingly on the receiving end. |
OpenTracing::FORMAT_BINARY | No | |