https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation
TBD
https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation
Last synced: over 1 year ago
JSON representation
TBD
- Host: GitHub
- URL: https://github.com/open-telemetry/opentelemetry-go-compile-instrumentation
- Owner: open-telemetry
- License: apache-2.0
- Created: 2025-01-13T18:21:55.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-11T20:43:20.000Z (over 1 year ago)
- Last Synced: 2025-03-31T08:08:02.840Z (over 1 year ago)
- Language: Go
- Size: 12.7 KB
- Stars: 93
- Watchers: 25
- Forks: 8
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: code-of-conduct.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# OpenTelemetry-Go-Compile-Instrumentation
OpenTelemetry-Go-Compile-Instrumentation provides compile time [OpenTelemetry](https://opentelemetry.io/) instrumentation for [Golang](https://golang.org/).
## Project Status
| Signal | Status |
|---------|--------------------|
| Traces | WIP |
| Metrics | WIP |
| Logs | Not started |
| Profiling | Not started |
## Getting Started
Run `sh -x build.sh` to show instrumentation example. In this example, we will inject a piece of code into the `main` function of the `main` package under the `demo` module to output the "Entering hook" string. This injected code comes from the `sdk` module.
If you want to check the result of instrumentation, go to the directory location that appears as output when running build.sh, e.g., `WORK=/var/folders/x9/fddsvlt5363c0plvvw8_2mr80000gn/T/go-build2020695287`.
### Navigate to the WORK directory:
```bash
cd /var/folders/x9/fddsvlt5363c0plvvw8_2mr80000gn/T/go-build2020695287
```
### Locate the main package under the b001 subdirectory:
```bash
ls -l b001
```
### Inspect files:
```bash
cat modified.go
```
## Contributing
See the [contributing documentation](CONTRIBUTING.md).
## License
OpenTelemetry Go Compile Instrumentation project is licensed under the terms of the [Apache Software License version 2.0].
See the [license file](./LICENSE) for more details.