- 필수 기능
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- 디지털 경험
- 소프트웨어 제공
- 보안
- 로그 관리
- 관리
- 인프라스트럭처
- ci
- containers
- csm
- ndm
- otel_guides
- overview
- slos
- synthetics
- tests
- 워크플로
Datadog supports the OpenTracing standard. For more details and information, view the OpenTracing API, or see the setup information below.
Import the opentracer
package to expose the Datadog tracer as an OpenTracing compatible tracer.
A basic usage example:
package main
import (
"github.com/opentracing/opentracing-go"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/opentracer"
"gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer"
)
func main() {
// Start the regular tracer and return it as an opentracing.Tracer interface. You
// may use the same set of options as you normally would with the Datadog tracer.
t := opentracer.New(tracer.WithServiceName("<SERVICE_NAME>"))
// Stop it using the regular Stop call for the tracer package.
defer tracer.Stop()
// Set the global OpenTracing tracer.
opentracing.SetGlobalTracer(t)
// Use the OpenTracing API as usual.
}