Skip to content

Commit 1bd5515

Browse files
committed
add request to TransactionMetadata type
1 parent 9862a32 commit 1bd5515

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/types/src/transaction.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { DynamicSamplingContext } from './envelope';
22
import { MeasurementUnit } from './measurement';
33
import { ExtractedNodeRequestData, Primitive, WorkerLocation } from './misc';
4+
import { PolymorphicRequest } from './polymorphics';
45
import { Span, SpanContext } from './span';
6+
57
/**
68
* Interface holding Transaction-specific properties
79
*/
@@ -145,7 +147,11 @@ export interface TransactionMetadata {
145147
*/
146148
dynamicSamplingContext?: Partial<DynamicSamplingContext>;
147149

150+
/** For transactions tracing server-side request handling, the request being tracked. */
151+
request?: PolymorphicRequest;
152+
148153
/** For transactions tracing server-side request handling, the path of the request being tracked. */
154+
/** TODO: If we rm -rf `instrumentServer`, this can go, too */
149155
requestPath?: string;
150156

151157
/** Information on how a transaction name was generated. */

0 commit comments

Comments
 (0)