| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…orker Signed-off-by: Dream95 <zhou_8621@163.com>
|
/pulsarbot rerun-failure-checks |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Main Issue:
PIP: #21635
Motivation
The Function Worker publishes its operational metrics through WorkerStatsManager, which writes to the legacy Prometheus registry. The worker also initializes an OpenTelemetry SDK in PulsarWorkerOpenTelemetry, but it is not actually used. Operators who enable OTel metrics get the broker metrics and nothing from the worker.
This PR continues PIP-320 by registering the worker's operational metrics on the meter that already exists, so the new instruments flow through the same OTel exporters as the broker metrics.
The broker made the same move under PIP-264.
Modifications
OpenTelemetry.noop(), so the RateLimitingFilter metrics are exported as well.
OpenTelemetryWorkerStatsTest.
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes