- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- Administrator's Guide
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
This guide explains how to troubleshoot builds that Orchestrion manages. These procedures can help Datadog gather insights about build processes and can assist with bug reports.
Orchestrion records build transformations in the go build
work tree. To prevent the go
toolchain from cleaning this directory after building, use the -work
flag:
orchestrion go build -work ./...
WORK=/tmp/go-build2455442813
The work tree location prints at the start of the build, marked with WORK=
. This directory contains subdirectories for each built go
package, which are called stage directories.
When Orchestrion injects code into a source file, it writes the modified file to the package’s stage directory ($WORK/b###
) in the orchestrion/src
subdirectory. For modified package import configurations, the original file is preserved with a .original
suffix. You can inspect these human-readable files to verify Orchestrion’s actions. Contact Datadog support for help interpreting these files.
Control Orchestrion’s logging output using the ORCHESTRION_LOG_LEVEL
environment variable or --log-level
flag:
Level | Description |
---|---|
NONE , OFF (default) | No logging output |
ERROR | Error information only |
WARN | Errors and warnings |
INFO | Errors, warnings, and informational messages |
DEBUG | Detailed logging |
TRACE | Extremely detailed logging |
ORCHESTRION_LOG_LEVEL
to the DEBUG
or TRACE
levels might have a significant impact on build performance. These settings are not recommended for normal operations.Write logging messages to files instead of the console by setting the ORCHESTRION_LOG_FILE
environment variable or --log-file
flag with the desired file path.
ORCHESTRION_LOG_FILE
changes the default value of ORCHESTRION_LOG_LEVEL
to WARN
.The log file path can include $PID
or ${PID}
tokens, which are replaced with the logging process’s PID. This reduces file contention but creates multiple log files for large projects.
Logging appends to existing files rather than overwriting them, regardless of the presence of $PID
in the file path.
추가 유용한 문서, 링크 및 기사: