Skip to content

Comments

Explicitly set OTel Service Instance ID#700

Merged
mhutchinson merged 2 commits intotransparency-dev:mainfrom
mhutchinson:b699-hostname
Feb 16, 2026
Merged

Explicitly set OTel Service Instance ID#700
mhutchinson merged 2 commits intotransparency-dev:mainfrom
mhutchinson:b699-hostname

Conversation

@mhutchinson
Copy link
Contributor

This uses os.Hostname, falling back on a UUID if for some reason it can't be looked up. This should work on VMs and CloudRun instances.

Fixes #699.

This uses os.Hostname, falling back on a UUID if for some reason it can't be looked up. This should work on VMs and CloudRun instances.

Fixes transparency-dev#699.
@mhutchinson mhutchinson requested a review from a team as a code owner February 12, 2026 16:42
@mhutchinson mhutchinson requested review from AlCutter and removed request for a team February 12, 2026 16:42
@mhutchinson mhutchinson requested a review from phbnf February 12, 2026 16:42
Whichever is last wins. Previously we used the env variables as the base, and then the binary would replace them. This way around is more user-first: if the user is strongly opinionated that in their telemetry they want, e.g. service name to be something different, they can do.
@mhutchinson mhutchinson merged commit d0c58c3 into transparency-dev:main Feb 16, 2026
10 checks passed
@mhutchinson mhutchinson deleted the b699-hostname branch February 16, 2026 10:41
mhutchinson added a commit to mhutchinson/static-ct that referenced this pull request Feb 16, 2026
This makes POSIX OTel configuration order work the same way as GCP was changed to in transparency-dev#700.
mhutchinson added a commit that referenced this pull request Feb 16, 2026
This makes POSIX OTel configuration order work the same way as GCP was changed to in #700.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GCP OTel should export a service instance ID

2 participants