-
Notifications
You must be signed in to change notification settings - Fork 394
Configure Opentelemetry solely through OTEL_ flags #712
Copy link
Copy link
Closed
Labels
SpiceDBarea/observabilityAffects telemetry dataAffects telemetry dataarea/toolingAffects the dev or user toolchain (e.g. tests, ci, build tools)Affects the dev or user toolchain (e.g. tests, ci, build tools)hint/good first issueSomeone new could handle thisSomeone new could handle thispriority/3 lowThis would be nice to haveThis would be nice to have
Metadata
Metadata
Assignees
Labels
SpiceDBarea/observabilityAffects telemetry dataAffects telemetry dataarea/toolingAffects the dev or user toolchain (e.g. tests, ci, build tools)Affects the dev or user toolchain (e.g. tests, ci, build tools)hint/good first issueSomeone new could handle thisSomeone new could handle thispriority/3 lowThis would be nice to haveThis would be nice to have
Type
Fields
Give feedbackNo fields configured for issues without a type.
Overview
I went to get opentelemetry tracing working with our infrastructure. We run an otel sidecar in an ECS context, so the opentelemetry receiver is at
http://localhost:4317and uses the grpc mechanism.This was what was necessary to get things working:
Specifying the provider makes sense to me; needing to specify both the
SPICEDB_andOTEL_versions of the endpoint doesn't. I tested with both individually and neither was sufficient by itself.Doing this configuration solely through
OTEL_-flagged environment variables would make sense to me, as would having maybe a single flag that says "otel tracing is on."I'm also game for other approaches/solutions; this was just the one that was discussed in discord.
Other background
Discord conversation around this here: https://discord.com/channels/844600078504951838/844600078948630559/1000124099043016814