Skip to content

Add snippets for prometheus clients compatibility documentation#8715

Closed
jack-berg wants to merge 1 commit intomainfrom
add-prometheus-examples
Closed

Add snippets for prometheus clients compatibility documentation#8715
jack-berg wants to merge 1 commit intomainfrom
add-prometheus-examples

Conversation

@jack-berg
Copy link
Copy Markdown
Member

Over in opentelemetry.io, I'm writing a compatibility guide comparing how prometheus client concepts to opentelemetry API: open-telemetry/opentelemetry.io#9263

It includes working code snippets for a variety of key API usage patterns, in multiple languages.

opentelemetry.io has a pattern called "code excerpts" which allow code from git submodules to be referenced in docs. We use this liberally in opentelemetry java docs, and to a lesser extent with opentelemetry go docs. I recently updated opentelemetry.io to go examples which were relocated to opentelemetry-go-contrib here: open-telemetry/opentelemetry.io#9462.

This PR adds all the go code snippets for the compatibility page. Here's the PR to add the java-equivalent examples: open-telemetry/opentelemetry-java-examples#1032

cc @dashpole, @ArthurSens who have been helping review the PR from a go and prometheus perspective.

@jack-berg jack-berg requested a review from a team as a code owner March 21, 2026 18:29
@jack-berg jack-berg closed this Mar 22, 2026
@jack-berg jack-berg deleted the add-prometheus-examples branch March 22, 2026 00:30
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.

1 participant