Skip to content

Commit d253c94

Browse files
committed
add request to TransactionMetadata type
1 parent ff4f97f commit d253c94

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/types/src/transaction.ts

+7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
import type { IncomingMessage } from 'http';
2+
13
import { Baggage } from './baggage';
24
import { MeasurementUnit } from './measurement';
35
import { ExtractedNodeRequestData, Primitive, WorkerLocation } from './misc';
46
import { Span, SpanContext } from './span';
7+
58
/**
69
* Interface holding Transaction-specific properties
710
*/
@@ -142,7 +145,11 @@ export interface TransactionMetadata {
142145
/** The baggage object of a transaction's baggage header, used for dynamic sampling */
143146
baggage?: Baggage;
144147

148+
/** For transactions tracing server-side request handling, the request being tracked. */
149+
request?: IncomingMessage;
150+
145151
/** For transactions tracing server-side request handling, the path of the request being tracked. */
152+
/** TODO: If we rm -rf `instrumentServer`, this can go, too */
146153
requestPath?: string;
147154

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

0 commit comments

Comments
 (0)