-
Notifications
You must be signed in to change notification settings - Fork 785
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
Logs could be exported via ConsoleExporter after LoggerFactory is disposed #1848
Comments
Issue exists outside of OpenTelemetry also, as shown in below code.
Some options: |
@reyang , I'm new to this but I would like to contribute and work on this, will drop a PR later, try to fix ConsoleExporter first. |
Thanks @jackyshang12321, I've assigned this issue to you. |
I'm on the fence if we should do anything here. Looking at what @cijothomas posted, the change on #3578 would cause our |
I feel having a special message might be a good starting point. |
Hey @reyang , it makes sense to add a special message to tell the user that something is wrong rather than stop exporting data. |
Hi @reyang , |
I've replied here #3578 (review). |
Bug Report
List of NuGet packages and
version that you are using (e.g.
OpenTelemetry 0.4.0-beta.2
):Runtime version (e.g.
net461
,net48
,netcoreapp2.1
,netcoreapp3.1
, etc.You can find this information from the
*.csproj
file):Symptom
What is the expected behavior?
If the logger factory is disposed, the console exporter should stop exporting data. (or we can keep exporting the data but put a special message telling the user that something is wrong?)
What is the actual behavior?
We can still see the log record "This log record is still exported by the ConsoleExporter." from the console.
Reproduce
We will close this issue if:
projects, so don't point us to such, please.
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: