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

tempo span metric #4338

Open
chenfango opened this issue Nov 18, 2024 · 3 comments
Open

tempo span metric #4338

chenfango opened this issue Nov 18, 2024 · 3 comments

Comments

@chenfango
Copy link

What is the difference between traces_spanmetrics_latency_count and traces_spanmetrics_calls_total

@mapno
Copy link
Member

mapno commented Nov 18, 2024

Hi @chenfango. Good question. traces_spanmetrics_latency_count and traces_spanmetrics_calls_total are semantically equivalent, both measure occurrences of received spans. The series traces_spanmetrics_latency_count belongs to a histogram, whereas traces_spanmetrics_calls_total is a standalone counter. We allow configuring spanmetrics subprocessors to generate one or the other metric, so both are emitted. You can read more about spanmetrics here: https://grafana.com/docs/tempo/latest/metrics-generator/span_metrics/#metrics.

@chenfango
Copy link
Author

Hi @chenfango. Good question. traces_spanmetrics_latency_count and traces_spanmetrics_calls_total are semantically equivalent, both measure occurrences of received spans. The series traces_spanmetrics_latency_count belongs to a histogram, whereas traces_spanmetrics_calls_total is a standalone counter. We allow configuring spanmetrics subprocessors to generate one or the other metric, so both are emitted. You can read more about spanmetrics here: https://grafana.com/docs/tempo/latest/metrics-generator/span_metrics/#metrics.

Thanks for your answer. I have another question: What is the difference between the http_server_request_duration_seconds_count metric and the traces_spanmetrics_latency_count metric?

The http_client_request_duration_seconds_sum metric is generated by the opentelemetry agent. It is the number of requests to the http api. What is the difference between them?

@chenfango
Copy link
Author

Is the span metric scope larger? Are there other metric scopes besides http?

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

No branches or pull requests

2 participants