Skip to content
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

feat: allow setting resource-level attributes for OpenTelemetry #3335

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

hassy
Copy link
Member

@hassy hassy commented Sep 11, 2024

Description

resourceAttributes may now be used to set resource [1] level attributes when reporting via Open Telemetry.

config:
  plugins:
    publish-metrics:
        - type: 'open-telemetry'

          # Set resource attributes:
          resourceAttributes:
            service.name: Artillery.io
            custom-attribute: some-value

Original discussion: #3333

  1. https://opentelemetry.io/docs/languages/js/resources/

Pre-merge checklist

This is for use by the Artillery team. Please leave this in if you're contributing to Artillery.

  • Does this require an update to the docs? Yes
  • Does this require a changelog entry? Yes

`resourceAttributes` may now be used to set resource [1] level
attributes when reporting via Open Telemetry.

```
config:
  plugins:
    publish-metrics:
        - type: 'open-telemetry'

          # Set resource attributes:
          resourceAttributes:
            service.name: Artillery.io
            custom-attribute: some-value
```

Original discussion: #3333

1. https://opentelemetry.io/docs/languages/js/resources/
@hassy hassy merged commit 8d776a8 into main Sep 11, 2024
41 checks passed
@hassy hassy deleted the feat/otel-resource-attributes branch September 11, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant