- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
You can add metadata to APIs through the Datadog UI or API, or use automated pipelines through the GitHub integration or Terraform.
API Catalog supports OpenAPI 2 and 3 as the format for defining APIs.
Datadog supports custom OpenAPI fields to help manage metadata:
API owner: Add the following to the top level of the OpenAPI file:
x-datadog:
teamHandle: dd-team
Scope to service: Add the service
parameter to the top level of an OpenAPI file to scope the API to a specific service. If you don’t define a specific service, Datadog matches all endpoints that fit your definition:
x-datadog:
service: web-store
The name of the service should be the exact service name as it appears on Datadog traces.
Example OpenAPI file:
openapi: 3.0.2
info:
title: API Name
description: API Description
version: 1.0.0
x-datadog:
teamHandle: dd-team
service: web-store
paths:
/api/v2/customers/{id}:
get:
summary: get customer information
operationId: getCustomerInfo
tags:
- public
- important
parameters:
- in: path
name: id
responses:
'200':
description: Successful operation
content:
application/vnd.api+json:
schema:
type: object
properties:
data:
type: array
description: Contains all customer information
'400':
description: Invalid arguments
'401':
description: Unauthorized operation
'500':
description: An internal server error
Use the Datadog GitHub integration to import API definitions and keep them updated. After connecting, the API automatically updates whenever the file content changes in the repository.
To import an OpenAPI or Swagger file using the GitHub integration:
추가 유용한 문서, 링크 및 기사: