-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add history-tracking to ObservationValidator (#5370)
This change lets you peek into the history of certain interactions with your Observations if an InvalidObservationException is thrown. This includes which method was called on your Observations (start, stop, error, etc) and also the relevant part of the stack trace. This is helpful when the instrumentation is complex and it is not apparent where a previous call to Observation happened that needs to be fixed. InvalidObservationException can provide you the full history through its getHistory method and it also gives you a summary through its toString.
- Loading branch information
1 parent
9ffef08
commit 3d26472
Showing
2 changed files
with
112 additions
and
2 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