Skip to content

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

Merged
hassy merged 1 commit intomainfrom
feat/otel-resource-attributes
Sep 11, 2024
Merged

feat: allow setting resource-level attributes for OpenTelemetry#3335
hassy merged 1 commit intomainfrom
feat/otel-resource-attributes

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
@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