@sentry/tracing
Advanced tools
Comparing version 6.4.1 to 6.5.0-beta.0
import { Hub } from '@sentry/hub'; | ||
import { Measurements, Transaction as TransactionInterface, TransactionContext } from '@sentry/types'; | ||
import { Measurements, Transaction as TransactionInterface, TransactionContext, TransactionMetadata } from '@sentry/types'; | ||
import { Span as SpanClass } from './span'; | ||
interface TransactionMetadata { | ||
transactionSampling?: { | ||
[key: string]: string | number; | ||
}; | ||
} | ||
/** JSDoc */ | ||
export declare class Transaction extends SpanClass implements TransactionInterface { | ||
name: string; | ||
private _metadata; | ||
metadata: TransactionMetadata; | ||
private _measurements; | ||
@@ -59,3 +54,2 @@ /** | ||
} | ||
export {}; | ||
//# sourceMappingURL=transaction.d.ts.map |
@@ -18,3 +18,2 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _this = _super.call(this, transactionContext) || this; | ||
_this._metadata = {}; | ||
_this._measurements = {}; | ||
@@ -29,2 +28,3 @@ /** | ||
_this.name = transactionContext.name || ''; | ||
_this.metadata = transactionContext.metadata || {}; | ||
_this._trimEnd = transactionContext.trimEnd; | ||
@@ -64,3 +64,3 @@ // this is because transactions are also spans, and spans have a transaction pointer | ||
Transaction.prototype.setMetadata = function (newMetadata) { | ||
this._metadata = tslib_1.__assign(tslib_1.__assign({}, this._metadata), newMetadata); | ||
this.metadata = tslib_1.__assign(tslib_1.__assign({}, this.metadata), newMetadata); | ||
}; | ||
@@ -106,3 +106,3 @@ /** | ||
type: 'transaction', | ||
debug_meta: this._metadata, | ||
debug_meta: this.metadata, | ||
}; | ||
@@ -109,0 +109,0 @@ var hasMeasurements = Object.keys(this._measurements).length > 0; |
import { Hub } from '@sentry/hub'; | ||
import { Measurements, Transaction as TransactionInterface, TransactionContext } from '@sentry/types'; | ||
import { Measurements, Transaction as TransactionInterface, TransactionContext, TransactionMetadata } from '@sentry/types'; | ||
import { Span as SpanClass } from './span'; | ||
interface TransactionMetadata { | ||
transactionSampling?: { | ||
[key: string]: string | number; | ||
}; | ||
} | ||
/** JSDoc */ | ||
export declare class Transaction extends SpanClass implements TransactionInterface { | ||
name: string; | ||
private _metadata; | ||
metadata: TransactionMetadata; | ||
private _measurements; | ||
@@ -59,3 +54,2 @@ /** | ||
} | ||
export {}; | ||
//# sourceMappingURL=transaction.d.ts.map |
@@ -17,3 +17,2 @@ import { __assign, __extends } from "tslib"; | ||
var _this = _super.call(this, transactionContext) || this; | ||
_this._metadata = {}; | ||
_this._measurements = {}; | ||
@@ -28,2 +27,3 @@ /** | ||
_this.name = transactionContext.name || ''; | ||
_this.metadata = transactionContext.metadata || {}; | ||
_this._trimEnd = transactionContext.trimEnd; | ||
@@ -63,3 +63,3 @@ // this is because transactions are also spans, and spans have a transaction pointer | ||
Transaction.prototype.setMetadata = function (newMetadata) { | ||
this._metadata = __assign(__assign({}, this._metadata), newMetadata); | ||
this.metadata = __assign(__assign({}, this.metadata), newMetadata); | ||
}; | ||
@@ -105,3 +105,3 @@ /** | ||
type: 'transaction', | ||
debug_meta: this._metadata, | ||
debug_meta: this.metadata, | ||
}; | ||
@@ -108,0 +108,0 @@ var hasMeasurements = Object.keys(this._measurements).length > 0; |
{ | ||
"name": "@sentry/tracing", | ||
"version": "6.4.1", | ||
"version": "6.5.0-beta.0", | ||
"description": "Extensions for Sentry AM", | ||
@@ -19,11 +19,11 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/hub": "6.4.1", | ||
"@sentry/minimal": "6.4.1", | ||
"@sentry/types": "6.4.1", | ||
"@sentry/utils": "6.4.1", | ||
"@sentry/hub": "6.5.0-beta.0", | ||
"@sentry/minimal": "6.5.0-beta.0", | ||
"@sentry/types": "6.5.0-beta.0", | ||
"@sentry/utils": "6.5.0-beta.0", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "6.4.1", | ||
"@sentry/browser": "6.4.1", | ||
"@sentry-internal/eslint-config-sdk": "6.5.0-beta.0", | ||
"@sentry/browser": "6.5.0-beta.0", | ||
"@types/express": "^4.17.1", | ||
@@ -30,0 +30,0 @@ "@types/jsdom": "^16.2.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2203702
16193
2
+ Added@sentry/hub@6.5.0-beta.0(transitive)
+ Added@sentry/minimal@6.5.0-beta.0(transitive)
+ Added@sentry/types@6.5.0-beta.0(transitive)
+ Added@sentry/utils@6.5.0-beta.0(transitive)
- Removed@sentry/hub@6.4.1(transitive)
- Removed@sentry/minimal@6.4.1(transitive)
- Removed@sentry/types@6.4.1(transitive)
- Removed@sentry/utils@6.4.1(transitive)
Updated@sentry/hub@6.5.0-beta.0
Updated@sentry/minimal@6.5.0-beta.0
Updated@sentry/types@6.5.0-beta.0
Updated@sentry/utils@6.5.0-beta.0