Skip to content

Register OpenTelemetry Before Startup.cs without Dependency Injection in dotnet 7 #4603

Answered by cijothomas
emmayspark asked this question in Q&A
Discussion options

You must be logged in to vote

if you want to do some logging even before the asp.net core pipeline is setup, then you need to setup own LoggerFactory. And this may be thrown away after initialization is done, when you can leverage the existing logging pipeline.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cijothomas
Comment options

Answer selected by emmayspark
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants