Service Mapping for Source Code Integration
이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다.Overview
You can associate your APM spans with Git data to link a running application version with a particular repository and commit. This unlocks source code features in APM-powered products.
Embed Git information in your deployed build artifacts to allow Datadog SDKs to read it and automatically attach git.commit.sha and git.repository_url tags to every span.
You can embed a repository URL and commit hash in your build artifact. The Datadog SDKs use this information to automatically add tags to your APM service telemetry.
Select one of the following languages that support embedding Git information:
Build inside a Docker container
If your build process is executed in CI within a Docker container, use a named context to make your .git folder available at build time:
Add your .git folder as a named build context:
docker build [...] --build-context dotgit=<path to your local .git folder>
In your Dockerfile, mount the .git folder before running your build:
RUN --mount=from=dotgit,target=<path to where you expect .git to be in your build container> <your build command>
Further reading