惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园_首页
腾讯CDC
D
Docker
The Cloudflare Blog
量子位
爱范儿
爱范儿
L
LangChain Blog
博客园 - 三生石上(FineUI控件)
博客园 - 司徒正美
aimingoo的专栏
aimingoo的专栏
Blog — PlanetScale
Blog — PlanetScale
Jina AI
Jina AI
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Vercel News
Vercel News
MyScale Blog
MyScale Blog

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Datadog + OpenTracing: Embracing the open standard for APM
Brad Menezes · 2017-12-06 · via Datadog | The Monitor blog
Brad Menezes

Brad Menezes

Open, transparent, extensible instrumentation has always been a core part of Datadog. From our open source Agent to our instrumentation libraries for custom metrics to our distributed tracing clients for APM, we pride ourselves on the openness of our client-side instrumentation.

So we are excited to announce Datadog support for OpenTracing, the vendor-neutral, open standard for distributed tracing. Our Go tracer now supports OpenTracing, and other tracing clients for Datadog APM will follow soon.

As part of our continued dedication to open source, today we are also joining the Cloud Native Computing Foundation, which hosts OpenTracing as a member project, and we are joining the OpenTracing Specification Council to play an active role in shaping the future of the standard.

About OpenTracing

OpenTracing provides APIs in several languages that can be used to log request spans to a number of pluggable backends. Because it is a vendor-neutral standard, OpenTracing enables you to easily port your applications from one distributed tracing backend to another, with minimal changes to code-level instrumentation. The OpenTracing project began in 2015 and was accepted into the CNCF (the foundation that also hosts the Kubernetes project and several others) in October 2016.

OpenTracing and you

Adopting the OpenTracing standard will allow our customers to tap into the deep, request-level visibility provided by distributed tracing, without concern for vendor lock-in or the need for costly code changes in the future. And by joining the OpenTracing Specification Council, we can ensure that our customers’ voices are heard as the standard evolves.

Set up monitoring and distributed tracing with open instrumentation and Datadog APM.

Instrumenting a Go app

A request trace from a Gin app instrumented with Datadog APM

To see how Datadog and OpenTracing work together, let’s look at a simple Gin web application (source code available here) that is instrumented for request tracing using the OpenTracing API. Thanks to the portability of vendor-neutral instrumentation, you can then plug in Datadog’s Go tracer, or any other compatible tracer, in just a few lines of code.

Adding Datadog as a tracing backend

The example code is already instrumented using the opentracing-go library. Now, to start sending data to Datadog, you can import the Datadog Go tracer:

import (

// Import Datadog tracer

datadog "github.com/DataDog/dd-trace-go/opentracing"

"github.com/gin-gonic/gin"

"github.com/opentracing/opentracing-go"

// ...

)

Finally, you just need to initialize the Datadog Tracer and use the OpenTracing API to set it as a Global Tracer so that it can be retrieved everywhere in the application code:

func main() {

// configure and initialize the Datadog Tracer

config := datadog.NewConfiguration()

config.ServiceName = "api-intake"

tracer, closer, _ := datadog.NewTracer(config)

defer closer.Close()

// Set it as a Global Tracer

opentracing.SetGlobalTracer(tracer)

router := gin.Default()

// ...

}

The snippet above sets some configurations for our tracer—in particular, adding the ServiceName to identify the service in Datadog.

With those simple code changes, Datadog is now tracing all requests to the application, so that you can track application performance in Datadog APM. You can view metrics on app throughput, latency, and errors; graph latency distributions; and explore individual traces for request-level visibility.

Open roads ahead

We are thrilled to be joining CNCF and the OpenTracing project to further our contributions to the open source community.

If you’re not using Datadog yet, we invite you to start a free trial to explore the benefits of full-stack monitoring with distributed tracing and APM, all built on open, fully customizable instrumentation.