-
Notifications
You must be signed in to change notification settings - Fork 792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: best way to set PrometheusExporter._serializer._appendTimestamp = false #1695
Closed
1 of 2 tasks
Comments
I think this is just a bug. If you want to take a crack at fixing it, I suggest allowing an /cc @legendecas any chance you can take this if @antoniomrfranco doesn't have time? |
Closing as the related PR is already landed. Thank you for the work on this! |
pichlermarc
pushed a commit
to dynatrace-oss-contrib/opentelemetry-js
that referenced
this issue
Dec 15, 2023
…n-telemetry#1695) - Convert the output of run commands to a string that is readable. - No need to `docker rm ...` test containers for `npm run test:local` usage because the `docker run --rm ...` option will remove them when stopped.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everyone,
I'd like to set
_appendTimestamp
tofalse
for aPrometheusSerializer
instance that is part of aPrometheusExporter
object.I saw that
PrometheusSerializer
has a property named_appendTimestamp
which is defined in its constructor:opentelemetry-js/packages/opentelemetry-exporter-prometheus/src/PrometheusSerializer.ts
Lines 141 to 146 in 3f72613
Also, I saw that the only place where
PrometheusSerializer
is instantiated is in the constructor method ofPrometheusExporter
:opentelemetry-js/packages/opentelemetry-exporter-prometheus/src/PrometheusExporter.ts
Line 59 in 3f72613
However, as
PrometheusExporter
instantiatesPrometheusSerializer
passingprefix
only, I can't control the value ofappendTimestamp
.Is there any way to set
appendTimestamp
tofalse
in this case?Thanks.
The text was updated successfully, but these errors were encountered: