-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add the ability to use span links when consuming a message amqp…
… plugin (#1972) A config option was added that when set to true, it follows the spec behavior to link to the produce context instead of continuing the context. The default behavior will be as it is today, so one has to opt-in to this change via the config setting. * Add the ability to use span links in AMQP plugin * add default behavior * Add in tests for useLinks option * Updating tests to correct Semantic attributes --------- Co-authored-by: Jamie Danielson <[email protected]>
- Loading branch information
1 parent
2c32e58
commit 5f2c160
Showing
5 changed files
with
724 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,10 +96,14 @@ export interface AmqplibInstrumentationConfig extends InstrumentationConfig { | |
* Default is 1 minute | ||
*/ | ||
consumeTimeoutMs?: number; | ||
|
||
/** option to use a span link for the consume message instead of continuing a trace */ | ||
useLinksForConsume?: boolean; | ||
} | ||
|
||
export const DEFAULT_CONFIG: AmqplibInstrumentationConfig = { | ||
consumeTimeoutMs: 1000 * 60, // 1 minute | ||
useLinksForConsume: false, | ||
}; | ||
|
||
// The following types are vendored from `@types/[email protected]` - commit SHA: 4205e03127692a40b4871709a7134fe4e2ed5510 | ||
|
Oops, something went wrong.