Skip to content

feat: option to set the telemetry resource #2648

@matheusvellone

Description

@matheusvellone

Is your feature request related to a problem? Please describe.

I use the telemetry config to export spans to my observability platform.
But the trigger.dev spans are missing some properties that I use across all my services because I cannot set them, like the environment name.

I tried setting the OTEL_RESOURCE_ATTRIBUTES environment variable, but it didn't work 😕

Describe the solution you'd like to see

It may make sense to allow a telemetry.resource option to set them. With this we could set any attribute that might be relevant for us

Describe alternate solutions

I understand that this might mess up with the trigger backend somehow.
Instead of exposing the resource entirely, maybe allowing only a couple of attributes might work too.

In my case, being able to set the environment and the service.name (to specify which kind of worker im receiving spans from) would be perfect

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions