Go 클라이언트 라이브러리 버전 1.48.0 이상이 필요합니다.
컨테이너
Docker 컨테이너를 사용하는 경우, Docker나 Datadog 추적 라이브러리를 사용하거나, DD_GIT_*
환경 변수를 사용하여 애플리케이션을 설정하는 세 가지 옵션이 있습니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
옵션 2: Datadog 추적 라이브러리
Go embeds version control information in binaries since version 1.18. The Datadog tracing library uses this information to tag your telemetry with the latest commit SHA and repository URL.
Ensure your service meets the following requirements to use this approach:
- Go version is 1.18 or later.
- The service is built as a go module and the module path is your code’s repository URL.
옵션 3: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
서버리스
서버리스를 사용하는 경우 서버리스 애플리케이션의 설정에 따라 세 가지 옵션이 있습니다.
옵션 1: Datadog 도구 구성
- Datadog CLI tool
- Use the
datadog-ci
client version 2.10.0 or later. You must run the CLI tool in the same directory as the code repository. - Datadog Serverless Plugin
- Use the plugin version 5.60.0 or later.
- Datadog CDK Construct
- Use the
datadog-cdk-constructs
version 0.8.5 or later for AWS CDK v1.Use the datadog-cdk-constructs
version 1.4.0 or later for AWS CDK v2.
옵션 2: Datadog 추적 라이브러리
Go embeds version control information in binaries since version 1.18. The Datadog tracing library uses this information to tag your telemetry with the latest commit SHA and repository URL.
Ensure your service meets the following requirements to use this approach:
- Go version is 1.18 or later.
- The service is built as a go module and the module path is your code’s repository URL.
옵션 3: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스트를 사용하는 경우 두 가지 옵션이 있습니다.
옵션 1: Datadog 추적 라이브러리
Go embeds version control information in binaries since version 1.18. The Datadog tracing library uses this information to tag your telemetry with the latest commit SHA and repository URL.
Ensure your service meets the following requirements to use this approach:
- Go version is 1.18 or later.
- The service is built as a go module and the module path is your code’s repository URL.
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
Python 클라이언트 라이브러리 버전 1.12.0 이상이 필요합니다.
컨테이너
Docker 컨테이너를 사용하는 경우 Docker 또는 Datadog 추적 라이브러리를 사용하거나 DD_GIT_*
환경 변수를 사용하여 애플리케이션을 설정하는 세 가지 옵션이 있습니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
옵션 2: 설정 도구 또는 통합 Python 프로젝트 설정 파일
If your application is packaged with setuptools:
- Install the
dd-trace
package. - Add
import ddtrace.sourcecode.setuptools_auto
as the first import to the setup.py
file. - Set the
DD_MAIN_PACKAGE
environment variable as the name of the primary Python package.
If your application is using a unified Python project settings file:
- Install the
hatch-datadog-build-metadata
plugin and configure it to embed git metadata. If a project already has URLs, reconfigure them as dynamic and move them to another configuration section. For more information, see the plugin source code. - Set the
DD_MAIN_PACKAGE
environment variable as the name of the primary Python package.
옵션 3: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
서버리스
서버리스를 사용하는 경우 서버리스 애플리케이션의 설정에 따라 세 가지 옵션이 있습니다.
옵션 1: Datadog 도구 구성
- Datadog CLI tool
- Use the
datadog-ci
client version 2.10.0 or later. You must run the CLI tool in the same directory as the code repository. - Datadog Serverless Plugin
- Use the plugin version 5.60.0 or later.
- Datadog CDK Construct
- Use the
datadog-cdk-constructs
version 0.8.5 or later for AWS CDK v1.Use the datadog-cdk-constructs
version 1.4.0 or later for AWS CDK v2.
옵션 2: 설정 도구 또는 통합 Python 프로젝트 설정 파일
If your application is packaged with setuptools:
- Install the
dd-trace
package. - Add
import ddtrace.sourcecode.setuptools_auto
as the first import to the setup.py
file. - Set the
DD_MAIN_PACKAGE
environment variable as the name of the primary Python package.
If your application is using a unified Python project settings file:
- Install the
hatch-datadog-build-metadata
plugin and configure it to embed git metadata. If a project already has URLs, reconfigure them as dynamic and move them to another configuration section. For more information, see the plugin source code. - Set the
DD_MAIN_PACKAGE
environment variable as the name of the primary Python package.
옵션 3: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스트를 사용하는 경우 두 가지 옵션이 있습니다.
옵션 1: 설정 도구 또는 통합 Python 프로젝트 설정 파일
If your application is packaged with setuptools:
- Install the
dd-trace
package. - Add
import ddtrace.sourcecode.setuptools_auto
as the first import to the setup.py
file. - Set the
DD_MAIN_PACKAGE
environment variable as the name of the primary Python package.
If your application is using a unified Python project settings file:
- Install the
hatch-datadog-build-metadata
plugin and configure it to embed git metadata. If a project already has URLs, reconfigure them as dynamic and move them to another configuration section. For more information, see the plugin source code. - Set the
DD_MAIN_PACKAGE
environment variable as the name of the primary Python package.
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
NET 클라이언트 라이브러리 버전 2.24.1 이상이 필요합니다.
첫 번째 단계로 .pdb
파일이 .NET 어셈블리(.dll
또는 .exe
)와 함께 같은 폴더에 배포되었는지 확인합니다.
그런 다음 구체적인 배포 모델에 맞는 지침을 따르세요.
컨테이너
Docker 컨테이너를 사용하는 경우 세 가지 옵션이 있습니다. Docker 또는 Microsoft SourceLink를 사용하거나 DD_GIT_*
환경 변수를 사용하여 애플리케이션을 설정하는 것입니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
옵션 2: Microsoft SourceLink
If you are using Microsoft SourceLink, Datadog can extract the git commit SHA and repository URL from your .NET assembly.
- Open your project’s file (
.csproj
) in an IDE and add a reference to one of the following NuGet packages, depending on where your git repository is hosted:
옵션 3: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
서버리스
서버리스를 사용하는 경우 서버리스 애플리케이션의 설정에 따라 세 가지 옵션이 있습니다.
옵션 1: Datadog 도구 구성
- Datadog CLI tool
- Use the
datadog-ci
client version 2.10.0 or later. You must run the CLI tool in the same directory as the code repository. - Datadog Serverless Plugin
- Use the plugin version 5.60.0 or later.
- Datadog CDK Construct
- Use the
datadog-cdk-constructs
version 0.8.5 or later for AWS CDK v1.Use the datadog-cdk-constructs
version 1.4.0 or later for AWS CDK v2.
옵션 2: Microsoft SourceLink
If you are using Microsoft SourceLink, Datadog can extract the git commit SHA and repository URL from your .NET assembly.
- Open your project’s file (
.csproj
) in an IDE and add a reference to one of the following NuGet packages, depending on where your git repository is hosted:
옵션 3: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스팅하다 을 사용하는 경우 Microsoft SourceLink를 사용하거나 DD_GIT_*
환경 변수를 사용하여 애플리케이션을 구성하는 두 가지 옵션이 있습니다.
옵션 1: Microsoft SourceLink
If you are using Microsoft SourceLink, Datadog can extract the git commit SHA and repository URL from your .NET assembly.
- Open your project’s file (
.csproj
) in an IDE and add a reference to one of the following NuGet packages, depending on where your git repository is hosted:
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
Node.js 클라이언트 라이브러리 버전 3.21.0 이상이 필요합니다.TypeScript 애플리케이션에 대한 코드 링크 및 스니펫을 표시하려면 Node 애플리케이션을 실행해야 합니다:
--enable-source-maps
.
컨테이너
Docker 컨테이너를 사용하는 경우 두 가지 옵션이 있습니다. Docker를 사용하거나 DD_GIT_*
환경 변수를 사용하여 애플리케이션을 설정하는 것입니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
서버리스
서버리스를 사용하는 경우 서버리스 애플리케이션의 설정에 따라 두 가지 옵션이 있습니다.
옵션 1: Datadog 도구 구성
- Datadog CLI tool
- Use the
datadog-ci
client version 2.10.0 or later. You must run the CLI tool in the same directory as the code repository. - Datadog Serverless Plugin
- Use the plugin version 5.60.0 or later.
- Datadog CDK Construct
- Use the
datadog-cdk-constructs
version 0.8.5 or later for AWS CDK v1.Use the datadog-cdk-constructs
version 1.4.0 or later for AWS CDK v2.
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스트를 사용하는 경우 DD_GIT_*
환경 변수를 사용해 애플리케이션을 설정하세요.
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
Ruby 클라이언트 라이브러리 버전 1.6.0 이상이 필요합니다.
컨테이너
Docker 컨테이너를 사용하는 경우 두 가지 옵션이 있습니다. Docker를 사용하거나 DD_TAGS
환경 변수를 사용하여 애플리케이션을 설정하는 것입니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_TAGS="git.repository_url:${DD_GIT_REPOSITORY_URL},git.commit.sha:${DD_GIT_COMMIT_SHA}"
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
Configure your application with the DD_TAGS
environment variable:
export DD_TAGS="git.commit.sha:<commitSha>,git.repository_url:<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
서버리스
서버리스를 사용하는 경우 서버리스 애플리케이션의 설정에 따라 두 가지 옵션이 있습니다.
옵션 1: Datadog 도구 구성
- Datadog CLI tool
- Use the
datadog-ci
client version 2.10.0 or later. You must run the CLI tool in the same directory as the code repository. - Datadog Serverless Plugin
- Use the plugin version 5.60.0 or later.
- Datadog CDK Construct
- Use the
datadog-cdk-constructs
version 0.8.5 or later for AWS CDK v1.Use the datadog-cdk-constructs
version 1.4.0 or later for AWS CDK v2.
Configure your application with the DD_TAGS
environment variable:
export DD_TAGS="git.commit.sha:<commitSha>,git.repository_url:<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스트를 사용하는 경우 DD_TAGS
환경 변수를 사용해 애플리케이션을 설정하세요.
Configure your application with the DD_TAGS
environment variable:
export DD_TAGS="git.commit.sha:<commitSha>,git.repository_url:<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
Java 클라이언트 라이브러리 버전 1.12.0 이상이 필요합니다.
컨테이너
도커(Docker) 컨테이너를 사용하는 경우 두 가지 옵션이 있습니다. 도커(Docker)를 사용하거나 DD_GIT_*
환경 변수를 통해 애플리케이션을 설정하는 것입니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
서버리스
서버리스를 사용하는 경우 서버리스 애플리케이션의 설정에 따라 두 가지 옵션이 있습니다.
옵션 1: Datadog 도구 구성
- Datadog CLI tool
- Use the
datadog-ci
client version 2.10.0 or later. You must run the CLI tool in the same directory as the code repository. - Datadog Serverless Plugin
- Use the plugin version 5.60.0 or later.
- Datadog CDK Construct
- Use the
datadog-cdk-constructs
version 0.8.5 or later for AWS CDK v1.Use the datadog-cdk-constructs
version 1.4.0 or later for AWS CDK v2.
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스트를 사용하는 경우 DD_GIT_*
환경 변수를 통해 애플리케이션을 설정하세요.
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
PHP 클라이언트 라이브러리 버전 1.2.0 이상이 필요합니다.
컨테이너
도커(Docker) 컨테이너를 사용하는 경우 두 가지 옵션이 있습니다. 도커(Docker)를 사용하거나 DD_GIT_*
환경 변수를 통해 애플리케이션을 설정하는 것입니다.
옵션 1: Docker
Add the following lines to your application’s Dockerfile:
ARG DD_GIT_REPOSITORY_URL
ARG DD_GIT_COMMIT_SHA
ENV DD_GIT_REPOSITORY_URL=${DD_GIT_REPOSITORY_URL}
ENV DD_GIT_COMMIT_SHA=${DD_GIT_COMMIT_SHA}
Add the following arguments to your Docker build command:
docker build . \
-t my-application \
--build-arg DD_GIT_REPOSITORY_URL=<git-provider.example/me/my-repo> \
--build-arg DD_GIT_COMMIT_SHA=$(git rev-parse HEAD)
옵션 2: DD_GIT_*
환경 변수
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.
호스트
호스트를 사용하는 경우 DD_GIT_*
환경 변수를 통해 애플리케이션을 설정하세요.
Configure your application with the DD_GIT_*
environment variables:
export DD_GIT_COMMIT_SHA="<commitSha>"
export DD_GIT_REPOSITORY_URL="<git-provider.example/me/my-repo>"
Replace <commitSha>
with the commit SHA used to build your application. You can retrieve this by running git rev-parse HEAD
at build time, and it needs to be passed into the runtime environment variables.