Node.js OpenTracing Instrumentation
이 페이지는 아직 영어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.OpenTracing support is included in the dd-trace
package.
const tracer = require('dd-trace').init()
const opentracing = require('opentracing')
opentracing.initGlobalTracer(tracer)
Use the tracer like in any other OpenTracing application.
The following tags are available to override Datadog specific options:
service.name
: The service name to be used for the span. The service name from the tracer will be used if this is not provided.resource.name
: The resource name to be used for the span. The operation name will be used if this is not provided.span.type
: The span type to be used for the span. Will fallback to custom
if not provided.
See opentracing.io for OpenTracing Node.js usage.