Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

feat: option to set the telemetry resource #2648

Copy link
Copy link
@matheusvellone

Description

@matheusvellone
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.