Uh oh!
There was an error while loading. Please reload this page.
fix(opentelemetry): Respect OTEL_SERVICE_NAME, OTEL_RESOURCE_ATTRIBUTES - #20509
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
size-limit report 📦
|
65f6897 to
d056014Compared056014 to
bdf3bbaCompare…ES (#20509) This uses the string passed into `getSentryResource` as a fallback, preferring instead to use the value in `env.OTEL_SERVICE_NAME` if set, or the `service.name` field in the comma-delimited key=value pairs in `env.OTEL_RESOURCE_ATTRIBUTES` pairs. Additional `env.OTEL_RESOURCE_ATTRIBUTES` are also attached to the resource attributes. fix: js-2280 fix: #20502
bdf3bba to
f572279CompareThere was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f572279. Configure here.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…ES (#20509) This uses the string passed into `getSentryResource` as a fallback, preferring instead to use the value in `env.OTEL_SERVICE_NAME` if set, or the `service.name` field in the comma-delimited key=value pairs in `env.OTEL_RESOURCE_ATTRIBUTES` pairs. Additional `env.OTEL_RESOURCE_ATTRIBUTES` are also attached to the resource attributes. fix: js-2280 fix: #20502
f572279 to
ff8d125Compare…ES (#20509) This uses the string passed into `getSentryResource` as a fallback, preferring instead to use the value in `env.OTEL_SERVICE_NAME` if set, or the `service.name` field in the comma-delimited key=value pairs in `env.OTEL_RESOURCE_ATTRIBUTES` pairs. Additional `env.OTEL_RESOURCE_ATTRIBUTES` are also attached to the resource attributes. fix: js-2280 fix: #20502
ff8d125 to
f1dac69Compare…ES (#20509) This uses the string passed into `getSentryResource` as a fallback, preferring instead to use the value in `env.OTEL_SERVICE_NAME` if set, or the `service.name` field in the comma-delimited key=value pairs in `env.OTEL_RESOURCE_ATTRIBUTES` pairs. Additional `env.OTEL_RESOURCE_ATTRIBUTES` are also attached to the resource attributes. fix: js-2280 fix: #20502
f1dac69 to
783bc85Compare| beforeEach(() => { | ||
| // Clone env so mutations are isolated | ||
| process.env = { ...originalEnv }; |
There was a problem hiding this comment.
FWIW vi.stubEnv works pretty nicely as well and with that we wouldn't need to store the original env
Uh oh!
There was an error while loading. Please reload this page.

This uses the string passed into
getSentryResourceas a fallback, preferring instead to use the value inenv.OTEL_SERVICE_NAMEif set, or theservice.namefield in the comma-delimited key=value pairs inenv.OTEL_RESOURCE_ATTRIBUTESpairs.Additional
env.OTEL_RESOURCE_ATTRIBUTESare also attached to the resource attributes.fix: js-2280
fix: #20502
yarn lint) & (yarn test).Closes#20502