- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
",t};e.buildCustomizationMenuUi=t;function n(e){let t='
",t}function s(e){let n=e.filter.currentValue||e.filter.defaultValue,t='${e.filter.label}
`,e.filter.options.forEach(s=>{let o=s.id===n;t+=``}),t+="${e.filter.label}
`,t+=`This feature is in Preview.
Datadog APM supports tracing for API Gateway when API Gateway proxies requests to applications running in Fargate or EC2.
Runtime | Datadog Tracer | Tracer version | Frameworks |
---|---|---|---|
Node.js | dd-trace-js | v4.50.0+ or v5.26.0+ | express, fastify, hapi, koa, microgateway-core, next, paperplane, restify, router, apollo |
Go | dd-trace-go | v1.72.1+ | chi, httptreemux, echo, go-restful, fiber, gin, gorilla mux, httprouter, fasthttp, goji |
Python | dd-trace-py | v3.1.0+ | aiohttp, asgi, bottle, cherrypy, django, djangorestframework, falcon, fastapi, flask, molten, pyramid, sanic, starlette, tornado, wsgi |
To see inferred spans for Amazon API Gateway, complete the following steps:
Ensure you are using a supported version of the Datadog tracer.
Where your application container is deployed, set the environment variable:
DD_TRACE_INFERRED_PROXY_SERVICES_ENABLED=true
Add headers and related mappings to Amazon API Gateway. API Gateway must pass the following headers in the request for the tracer to create the inferred span:
header | value |
---|---|
x-dd-proxy | 'aws-apigateway' |
x-dd-proxy-request-time-ms | context.requestTimeEpoch |
x-dd-proxy-domain-name | context.domainName |
x-dd-proxy-httpmethod | context.httpMethod |
x-dd-proxy-path | context.path |
x-dd-proxy-stage | context.stage |
To pass in these headers, you can use the AWS CDK or AWS Console.
To deploy API Gateway with the AWS CDK, add the headers under requestParameters
and use $context
variables:
const resource = api.root.addResource('myresource');
resource.addMethod('ANY', new apigateway.Integration({
# other configurations
options: {
# other options
requestParameters: {
"integration.request.header.x-dd-proxy": "'aws-apigateway'",
"integration.request.header.x-dd-proxy-request-time-ms": "context.requestTimeEpoch",
"integration.request.header.x-dd-proxy-domain-name": "context.domainName",
"integration.request.header.x-dd-proxy-httpmethod": "context.httpMethod",
"integration.request.header.x-dd-proxy-path": "context.path",
"integration.request.header.x-dd-proxy-stage": "context.stage",
}
}
})
# other settings here
});
In the AWS Management Console, navigate to API Gateway and go to your API’s Resources page.
Go to Integration request and click Edit.
Under Edit integration request, scroll down to URL request headers parameters. Click Add request header parameter.