-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implement support for exporting metrics to stackdriver #10
Comments
Is it needed or the native OTLP capability is sufficient? https://cloud.google.com/stackdriver/docs/solutions/agents/ops-agent/otlp#otlp-metrics |
Unfortunately, GCP does not support running the OpsAgent on container-optimised OS so we can't use the OTLP exporter :( |
Got it. Is the current crate supported by Google? I am asking because in other languages, dedicated exporters are not supported by Google (https://github.com/open-telemetry/opentelemetry-dotnet-contrib/tree/main/src/OpenTelemetry.Exporter.Stackdriver#stackdriver-exporter-for-opentelemetry-net) and is usually unmaintained... |
I am not affiliated with this crate in any way, just a user myself but I think it is not officially supported. |
The crate is not supported by Google, but we as users are maintaining it. @thomaseizinger happy to review a PR! |
I'll see what I can do. We are first integrating structured logging. Metrics will come after that :) |
Fixes #1336 As per the [specs](https://github.com/open-telemetry/opentelemetry-specification/blob/v1.25.0/specification/protocol/exporter.md#specifying-headers-via-environment-variables), the custom headers for OTLP exporter can be specified through env variables - `OTEL_EXPORTER_OTLP_HEADERS`, `OTEL_EXPORTER_OTLP_TRACES_HEADERS`, `OTEL_EXPORTER_OTLP_METRICS_HEADERS`. This PR completes the work already done in PR #1290 adding support for tonic metadata To reproduce the same behavior as http exporter, the env-variable takes precedence (as discussed in open-telemetry/opentelemetry-rust-contrib#10) * Move common code for http and tonic exporters in `exporter/mod.rs` (function to parse header from string and test helper to run tests with isolated env variables) I wanted to minimize the changes but maybe it should be a good idea to use a crate like https://crates.io/crates/temp-env for environment related testing
As far as I can tell, exporting metrics via
opentelemetry-stackdriver
is not (yet) supported. Opening this issue to coordinate its implementation.The text was updated successfully, but these errors were encountered: