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

[chore] fix schema for telemetry/metrics/<metric-name> #10224

Conversation

jpkrohling
Copy link
Member

@jpkrohling jpkrohling commented May 27, 2024

Apparently there's an error on the schema for the telemetry node: looking at a working example, I see this:

telemetry:
  metrics:
    processor_tail_sampling_sampling_decision_latency:
      description: Latency (in microseconds) of a given sampling policy
      unit: µs
      enabled: true
      histogram:
        value_type: int

However, the current schema seems to indicate that the metrics node shouldn't be there. This PR brings the schema to be in-line with the code.

Signed-off-by: Juraci Paixão Kröhling juraci@kroehling.de

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
@jpkrohling jpkrohling requested a review from a team as a code owner May 27, 2024 10:41
@jpkrohling jpkrohling requested a review from dmitryax May 27, 2024 10:41
monotonic: bool
# Optional: array of attributes that were defined in the attributes section that are emitted by this metric.
attributes: [string]
metrics:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really the only difference here. Everything else was just indented under metrics.

Copy link

codecov bot commented May 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.53%. Comparing base (5ba6000) to head (6c0c483).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10224   +/-   ##
=======================================
  Coverage   92.53%   92.53%           
=======================================
  Files         387      387           
  Lines       18191    18191           
=======================================
  Hits        16833    16833           
  Misses       1019     1019           
  Partials      339      339           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codeboten codeboten merged commit 12d0cde into open-telemetry:main May 27, 2024
49 checks passed
@github-actions github-actions bot added this to the next release milestone May 27, 2024
steves-canva pushed a commit to Canva/opentelemetry-collector that referenced this pull request Jun 14, 2024
…y#10224)

Apparently there's an error on the schema for the telemetry node:
looking at a working example, I see this:

```
telemetry:
  metrics:
    processor_tail_sampling_sampling_decision_latency:
      description: Latency (in microseconds) of a given sampling policy
      unit: µs
      enabled: true
      histogram:
        value_type: int
```

However, the current schema seems to indicate that the `metrics` node
shouldn't be there. This PR brings the schema to be in-line with the
code.

Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
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.

None yet

2 participants