Fix prometheus metric name and unit conversion
(#3924)
this is a breaking change to prometheus metric names so they comply with the
specification.
you can temporarily opt-out of the unit normalization by setting the environment variable
OTEL_PYTHON_EXPERIMENTAL_DISABLE_PROMETHEUS_UNIT_NORMALIZATION=true
common unit abbreviations are converted to Prometheus conventions (s -> seconds),
following the collector's implementation
repeated _ are replaced with a single _
unit annotations (enclosed in curly braces like {requests}) are stripped away
units with slash are converted e.g. m/s -> meters_per_second.
The exporter's API is not changed
Add parameters for Distros and configurators to configure autoinstrumentation in addition to existing environment variables.
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Bumps opentelemetry-exporter-otlp-proto-common from 1.20.0 to 1.25.0.
Changelog
Sourced from opentelemetry-exporter-otlp-proto-common's changelog.
... (truncated)
Commits
257e6fe
[release/v1.25.x-0.46bx] Prepare release 1.25.0/0.46b0 (#3942)d73593d
Fix prometheus metric name and unit conversion (#3924)832e859
Add OpenTelemetry trove classifiers to PyPI packages (#3913)dbf6943
Fixup pylint broad exceptions warnings (#3923)a156bf1
Do not install unnecessary packages (#3896)6e84b1f
exporter: add is_remote_parent span flags to OTLP exported spans and links (#...fbbf5b5
Revert modifications to Apache license (#3870)afc3ace
Bump black to 24.3.0 (#3871)b51a6f8
Sort by label keys before generating labels key and value lists (#3698)9398f26
Use a single install command for lint (#3848)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show