@sentry/opentelemetry 8.36.0 → 8.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +3 -3
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +3 -3
- package/build/esm/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/types.d.ts +1 -1
- package/build/types/utils/isSentryRequest.d.ts +1 -1
- package/build/types-ts3.8/types.d.ts +1 -1
- package/build/types-ts3.8/utils/isSentryRequest.d.ts +1 -1
- package/package.json +5 -5
package/build/cjs/index.js
CHANGED
|
@@ -254,7 +254,7 @@ function getContextFromScope(scope) {
|
|
|
254
254
|
|
|
255
255
|
/**
|
|
256
256
|
*
|
|
257
|
-
* @param otelSpan Checks
|
|
257
|
+
* @param otelSpan Checks whether a given OTEL Span is an http request to sentry.
|
|
258
258
|
* @returns boolean
|
|
259
259
|
*/
|
|
260
260
|
function isSentryRequestSpan(span) {
|
|
@@ -1730,7 +1730,7 @@ function createTransactionForOtelSpan(span) {
|
|
|
1730
1730
|
|
|
1731
1731
|
const parentSpanIdFromTraceState = _optionalChain$2([span, 'access', _2 => _2.spanContext, 'call', _3 => _3(), 'access', _4 => _4.traceState, 'optionalAccess', _5 => _5.get, 'call', _6 => _6(SENTRY_TRACE_STATE_PARENT_SPAN_ID)]);
|
|
1732
1732
|
|
|
1733
|
-
// If parentSpanIdFromTraceState is defined at all, we want it to take
|
|
1733
|
+
// If parentSpanIdFromTraceState is defined at all, we want it to take precedence
|
|
1734
1734
|
// In that case, an empty string should be interpreted as "no parent span id",
|
|
1735
1735
|
// even if `span.parentSpanId` is set
|
|
1736
1736
|
// this is the case when we are starting a new trace, where we have a virtual span based on the propagationContext
|
|
@@ -1854,7 +1854,7 @@ function getSpanData(span)
|
|
|
1854
1854
|
}
|
|
1855
1855
|
|
|
1856
1856
|
/**
|
|
1857
|
-
* Remove custom `sentry.`
|
|
1857
|
+
* Remove custom `sentry.` attributes we do not need to send.
|
|
1858
1858
|
* These are more carrier attributes we use inside of the SDK, we do not need to send them to the API.
|
|
1859
1859
|
*/
|
|
1860
1860
|
function removeSentryAttributes(data) {
|