Skip to content

contrib/trace/otlphttp/v2: Add an initialization method with a sampling ratio. #3834

@weimx2023

Description

@weimx2023

Description

These issues all mention how to control the proportion of traces. Therefore, I suggest adding an initialization function with a sampling rate parameter. This way, users can customize the sampling ratio, preventing a large number of traces in production environments.
#3171 #3201

Additional

Here is an approach for improvement
image

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions