Skip to content

Conversation

@jblazquez
Copy link
Contributor

@jblazquez jblazquez commented Dec 17, 2025

Summary

This PR fixes log_to_metric transform to correctly handle metrics with a value type of MetricValue::AggregatedHistogram or MetricValue::AggregatedSummary.

See #24393

Vector configuration

[sources.opentelemetry]
type = "opentelemetry"
grpc.address = "0.0.0.0:4317"
http.address = "0.0.0.0:4318"

[transforms.my_metric_to_log]
type = "metric_to_log"
inputs = ["opentelemetry.metrics"]

[transforms.my_log_to_metric]
type = "log_to_metric"
inputs = [ "my_metric_to_log" ]
all_metrics = true
metrics = []

How did you test this PR?

  1. Set up a graph as shown above.
  2. Posted an OTEL Summary metric.

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

References

@jblazquez jblazquez requested a review from a team as a code owner December 17, 2025 21:57
@github-actions github-actions bot added the domain: transforms Anything related to Vector's transform components label Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

domain: transforms Anything related to Vector's transform components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

log_to_metric: Histogram and summary metrics are converted incorrectly

1 participant