Skip to content

Avoiding Memory Leak From Unclosed Response’s Body #786

@iamgoangle

Description

@iamgoangle

I'm using Zipkin for the exporter. I'm a bit curios about https://github.com/open-telemetry/opentelemetry-go/blob/master/exporters/trace/zipkin/zipkin.go#L109-L114

there is no defer resp.Body.Close() to avoid memory leak or consume the high resources in a server.

I'm quite not sure that this is a bug or not. Would you please help me to verify this?

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions