-
Notifications
You must be signed in to change notification settings - Fork 772
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
OpenTelemetryLoggerProvider is now unaffected by changes to OpenTelemetryLoggerOptions after the LoggerFactory is built. #3055
Merged
cijothomas
merged 37 commits into
open-telemetry:main
from
TimothyMothra:2902_fix_options
Mar 30, 2022
Merged
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
f944a1c
Merge pull request #1 from open-telemetry/main
TimothyMothra ba726c5
Merge branch 'open-telemetry:main' into main
TimothyMothra 68d1977
Merge branch 'open-telemetry:main' into main
TimothyMothra 9dcb839
poc for fix to InMemoryExporter
TimothyMothra 34d15ec
Revert "poc for fix to InMemoryExporter"
TimothyMothra 436f0dc
Merge branch 'open-telemetry:main' into main
TimothyMothra 1c7390c
Merge branch 'open-telemetry:main' into main
TimothyMothra 9d2453f
Merge branch 'open-telemetry:main' into main
TimothyMothra 752f6fd
includescopes
TimothyMothra 4e9fe78
Merge branch 'open-telemetry:main' into main
TimothyMothra e3779ad
prevent LoggerOptions from being modified after init.
TimothyMothra 34bb684
Merge branch 'main' into 2902_fix_options
TimothyMothra 797f991
REMOVE
TimothyMothra a5a8d93
Merge branch '2902_fix_options' of https://github.com/TimothyMothra/o…
TimothyMothra 4a29ff1
copy the values out of the Options instance
TimothyMothra c6f2133
remove
TimothyMothra 9a9b7c0
new test to verify options cannot be changed
TimothyMothra 0362a97
Merge branch 'main' into 2902_fix_options
TimothyMothra b3ab1f9
changelog
TimothyMothra fe9d508
Merge branch '2902_fix_options' of https://github.com/TimothyMothra/o…
TimothyMothra 5e68aff
Merge branch 'main' into 2902_fix_options
TimothyMothra dbb9645
update changelog
TimothyMothra 73bf126
merge
TimothyMothra c659f74
Update src/OpenTelemetry/CHANGELOG.md
TimothyMothra b1b4f7b
Merge branch 'main' into 2902_fix_options
TimothyMothra 5e71c7c
Merge branch 'main' into 2902_fix_options
TimothyMothra 767beaf
update
TimothyMothra 468e96a
Merge branch '2902_fix_options' of https://github.com/TimothyMothra/o…
TimothyMothra baea732
Merge branch 'main' into 2902_fix_options
TimothyMothra 6cf5620
Merge branch 'main' into 2902_fix_options
TimothyMothra 5aef460
addressing pr comments.
TimothyMothra b45f92b
Merge branch '2902_fix_options' of https://github.com/TimothyMothra/o…
TimothyMothra 99f6b9e
remove CreateLogger from InitializeLoggerFactory
TimothyMothra 8cb96b8
Merge branch 'main' into 2902_fix_options
cijothomas d7ba0a5
Merge branch 'main' into 2902_fix_options
TimothyMothra fbf6ac5
Update CHANGELOG.md
TimothyMothra 4b760d1
Merge branch 'main' into 2902_fix_options
cijothomas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we have to have the helper method create a ILogger? It can just do what it claims to do (from the name) - initialize and return a loggerfactory, configured as per the
configure
action given to it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was meant to simplify the individual tests by removing a dozen lines of identical boilerplate code.
I can move some or all of this into every test, but I don't think that improves the value of the tests themselves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of the helper method did not indicate its intended purpose. The latest commit looks better.
(if we want to achieve less duplication in tests, we can do that, with aptly named helper. but this looks good for me now)