-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
draft: Add metadata around transaction name changes #5709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
68d6eba
fead246
76af3e3
d16a353
8c00b71
3ef0b80
e9ccebd
0178205
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -150,6 +150,12 @@ export interface TransactionMetadata { | |||||
|
||||||
/** Metadata for the transaction's spans, keyed by spanId */ | ||||||
spanMetadata: { [spanId: string]: { [key: string]: unknown } }; | ||||||
|
||||||
/** Metadata representing information about transaction name changes */ | ||||||
nameChanges: TransactionNameChange[]; | ||||||
|
||||||
/** The total number of propagations that happened */ | ||||||
numPropagations: number; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is called
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done - e9ccebd |
||||||
} | ||||||
|
||||||
/** | ||||||
|
@@ -169,3 +175,17 @@ export type TransactionSource = | |||||
| 'component' | ||||||
/** Name of a background task (e.g. a Celery task) */ | ||||||
| 'task'; | ||||||
|
||||||
/** | ||||||
* Object representing metadata about when a transaction name was changed. | ||||||
*/ | ||||||
export interface TransactionNameChange { | ||||||
// new name | ||||||
name: string; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As discussed offline, we don't require the name for analysis right now. If we drop it, we further prevent the possibility of capturing unintended. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done - 3ef0b80 |
||||||
// unix timestamp when the name was changed | ||||||
timestamp: number; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FTR: The develop spec and Relay protocol definition should use the same type as other timestamps in the protocol, allowing for ISO strings in addition to numbers. |
||||||
// new source | ||||||
source: TransactionSource; | ||||||
// number of propagations since start of transaction. | ||||||
propagations: number; | ||||||
} |
Uh oh!
There was an error while loading. Please reload this page.