Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing telemetry API's to survey #6

Open
tsloughter opened this issue Aug 1, 2024 · 1 comment
Open

Existing telemetry API's to survey #6

tsloughter opened this issue Aug 1, 2024 · 1 comment

Comments

@tsloughter
Copy link
Member

Here we can collect information on existing telemetry API's -- completely unrelated to OpenTelemetry or ones built on OpenTelemetry. How we want to use this information may require its own issue to discuss.

@tsloughter
Copy link
Member Author

Micrometer has an API called Micrometer Observation which will create metrics and spans through the single API, https://docs.micrometer.io/tracing/reference/configuring.html

Example:

Observation.createNotStarted("my.operation", registry)
    .contextualName("This name is more readable - we can reuse it for e.g. spans")
    .lowCardinalityKeyValue("this.tag", "will end up as a meter tag and a span tag")
    .highCardinalityKeyValue("but.this.tag", "will end up as a span tag only")
    .observe(this::yourCodeToMeasure);
Gathered the following metrics
    Meter with name <my.operation> and type <TIMER> has the following measurements
        <[
            Measurement{statistic='COUNT', value=1.0},
            Measurement{statistic='TOTAL_TIME', value=1.011949454},
            Measurement{statistic='MAX', value=1.011949454}
        ]>
        and has the following tags <[tag(this.tag=will end up as a meter tag and a span tag)]>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant