https://github.com/billmeyer/otelruntimemetrics
https://github.com/billmeyer/otelruntimemetrics
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/billmeyer/otelruntimemetrics
- Owner: billmeyer
- Created: 2025-01-07T16:50:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T16:52:46.000Z (over 1 year ago)
- Last Synced: 2025-10-10T21:07:08.738Z (9 months ago)
- Language: Go
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Golang Runtime Metric Collection using OpenTelemetry
In this example, we enable collection of [Go runtime metrics](https://pkg.go.dev/runtime/metrics) from an application using [OpenTelemetry](https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/instrumentation/runtime/example_test.go).
While the runtime metric collection works well, there are special considerations that must be made when collecting telemetry with an OpenTelemetry Gateway involved. Namely, the following Resource Attributes should be specified by the *application* (as opposed to deferring to the Collector to assign):
| Key |Value|
|------------------------|---|
| deployment.environment |dev|
| host.name |myhostname|