-
Notifications
You must be signed in to change notification settings - Fork 163
Fix duplicating integrations due to multiple Initialize calls from different AppDomains. #1794
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 all commits
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 |
|---|---|---|
|
|
@@ -9,9 +9,23 @@ internal static partial class InstrumentationDefinitions | |
| { | ||
| private static string assemblyFullName = typeof(InstrumentationDefinitions).Assembly.FullName; | ||
|
|
||
| internal static NativeCallTargetDefinition[] GetAllDefinitions() | ||
| internal static Payload GetAllDefinitions() | ||
| { | ||
| return GetDefinitionsArray(); | ||
| return new Payload | ||
| { | ||
| // Fixed Id for definitions payload (to avoid loading same integrations from multiple AppDomains) | ||
| DefinitionsId = "FFAFA5168C4F4718B40CA8788875C2DA", | ||
|
Contributor
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. Will this ever change? Do you expect a scenario where we'd need to load definitions twice?
Member
Author
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. I don't expect that scenario tbh. I think we should load the integrations only once (like we did with the json file). So I don't expect that Id to change. |
||
|
|
||
| // Autogenerated definitions array | ||
| Definitions = GetDefinitionsArray(), | ||
| }; | ||
| } | ||
|
|
||
| internal struct Payload | ||
| { | ||
| public string DefinitionsId { get; set; } | ||
|
|
||
| public NativeCallTargetDefinition[] Definitions { get; set; } | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.