-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for "Start" utility methods (#16)
* feat: replace hardcoded span start function names with regex patterns Replaces the hardcoded list of function names and packages with a list of regex patterns that may be extended using the `-extra-start-span-signatures` command line option. The format is `<regex>:<telemetry-type>`. Ideally this would just be a list of regex patterns, but we need to know what telemetry library we're matching so we don't run RecordError on opencensus. * tests: update tests to use new default config The tests need to unconditionally include the DefaultStartSpanSignatures, which was not possible with the old harness. Instead of returning an object directly, they now return a function to prepare a config, which ensures they all start out with the default config as a base. * Add test, skip validating spans within starter funcs * Hack: fix check for start func method name * fix: increase robustness of skipping custom matchers Instead of checking if the function name matches, which might result in overzealous exclusions, prefer to match against the function signature itself * docs: document new behaviour * Remove sig split in config * nit: small wording changes --------- Co-authored-by: josh <[email protected]>
- Loading branch information
Showing
7 changed files
with
219 additions
and
48 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
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
Oops, something went wrong.