Skip to content

Many dimensions with http.client.open_connections #122752

@JamesNK

Description

@JamesNK

Description

See https://www.reddit.com/r/dotnet/comments/1pwkqfl/looking_for_example_code_of_opentelemetry_tracing/nw4k1wy/ and Azure/azure-sdk-for-net#52674

The tags on the metric should be low cardinality. High cardinality tags creates many dimensions.

Many dimensions are bad:

  • Some tooling will stop recording values when dimension limit is reached (prevent excessive memory use)
  • Observability platforms can charge per-dimension stored, so many dimensions could create a large bill

Reproduction Steps

Send requests to many servers. Each server adds multiple dimensions to the metric because "server.address", "server.port" and "network.peer.address" tags will be different for each server.

Expected behavior

Constrained number of dimensions.

Actual behavior

Unconstrained number of dimensions.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

area-System.Net.HttpenhancementProduct code improvement that does NOT require public API changes/additionsneeds-further-triageIssue has been initially triaged, but needs deeper consideration or reconsideration

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions