dotnet / dotnet/aspnetcore

Weird tracing results

Open
#48,915 2 comments 0 reactions 0 assignees View on GitHub
area-networking
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 10h
Merged PRs (30d)
281

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Describe the bug

I use gRPC service with a server streaming endpoint. And the client's span duration is much longer than the server's one while the only thing client does is reading all items from the stream.

![image](https://github.com/dotnet/aspnetcore/assets/9202028/2dd7ae90-c2da-41ba-b204-04d05989e808)

It looks like ASP.NET Core instrumentation does not take stream lifetime into account, whereas client gRPC instrumentation does.

### Expected Behavior

I expect span to live as long as gRPC stream does.

### Steps To Reproduce

_No response_

### Exceptions (if any)

_No response_

### .NET Version

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.