Skip to content

.Net: Difference in duration values between OpenTelemetry metrics and traces #10931

Open
@merveozbay

Description

@merveozbay

Hello,

I instrumented my service as mentioned at the documentation Observability in Semantic Kernel to emit metrics and traces.

When I checked the metrics and traces, I saw that 'semantic_kernel_function_invocation_duration_seconds_sum' metric was sometimes different from what came in trace.

For example, the duration of one of my kernel functions appears as 12.85 ms in the trace, but while in the Prometheus, it seems 0.00310 sec. Similarly, the one which appears as 28.04ms in the trace seems 0.00729 in the metrics. But, there is no problem with those which appear in seconds in the trace like 1.49 sec. I also see this as 1.49 sec in the metric.

What could be the reason for this difference?

Thank you!

Metadata

Metadata

Assignees

Labels

.NETIssue or Pull requests regarding .NET codebugSomething isn't workingstaleIssue is stale because it has been open for a while and has no activitytelemetry

Type

No type

Projects

Status

Bug

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions