Skip to content

Configure Opentelemetry solely through OTEL_ flags #712

@reify-tanner-stirrat

Description

@reify-tanner-stirrat

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:4317 and uses the grpc mechanism.

This was what was necessary to get things working:

    { "name" : "SPICEDB_OTEL_PROVIDER", "value" : "otlpgrpc" },
    { "name" : "SPICEDB_OTEL_ENDPOINT", "value" : "localhost:4317" },
    { "name" : "OTEL_EXPORTER_OTLP_ENDPOINT", "value" : "http://localhost:4317" },

Specifying the provider makes sense to me; needing to specify both the SPICEDB_ and OTEL_ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions