Skip to content

Memory leak of spans with grpc server stats handler #6446

Open
@atoulme

Description

@atoulme

Description

See open-telemetry/opentelemetry-collector#11875 for original filing.

The gRPC server stats handler set by the OTLP receiver exposes a leak of spans over a long period of time.

From review of the code, it is possible the spans are not always closed by the stats_handler.go.

The span.End() call is made upon receiving the *stats.End event:

It seems in light of the leak, given the pprof dumps provided in the original report, that the event is not always received.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Needs triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions