-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add fallback service target type for exit spans (#1294)
* feat: add fallback service target type for exit spans This is the final step for complete service target fields support. Exit spans will fallback to type and subtype similar to what the deprecated destination resource was doing. Assertions have been added to tests to verify the service target type is not overwritten if previously set and that the fallback mechanism is working properly. * feat: allow users to disable inference of service target fields if the user does not call SetServiceTarget at all, we'll use inferred values for both (where possible) if the user calls SetServiceTarget with an empty name, this will disable inference if the user calls SetServiceTarget with a non-empty name, but empty type, we'll use the specified name and infer the type * docs: update test comment to reference the correct field Co-authored-by: Andrew Wilkins <[email protected]> * test: add service target infer testcase with explicit name Co-authored-by: Andrew Wilkins <[email protected]>
- Loading branch information
Showing
3 changed files
with
116 additions
and
0 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