-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Opentelemetry Setup #263
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
Conversation
|
I've been waiting for this. Could you add support for passing metadata map values from cli/env? https://docs.rs/tonic/latest/tonic/metadata/struct.MetadataMap.html I want to use OpenObserve for observability, and it requires basic authentication headers. |
|
@if0ne metadata as in http headers or host/workload attributes? for headers: the current code will respect https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_headers so basic auth is `export OTEL_EXPORTER_OTLP_HEADERS="Authorization: Bearer xxxx" for metadata, was thinking of surfacing all or a subset of workloads' |
As http headers. Thanks, I didn’t notice this env. |
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Signed-off-by: Bailey Hayes <bailey@cosmonic.com>
7ea6c46 to
035d88c
Compare
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
Sets up OTEL for logs / traces ( no metrics yet ).
OTEL configuration is driven by SDK environment variables.
We are tracking:
For Plugin Authors: Any
HostApiinteraction is observed by the runtime, so no need to instrument those unless you're enriching context.An example setup would look like:
Start Aspire Dashboard ( Otel receiver ) with
Configure Otel:
Start wash:
You should be able to see: