Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

KestrelServer Diagnostic Source #58911

Closed
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Milestone
@maldago

Description

@maldago

I have been trying to get the Diagnostic Source working for the Kestrel Server following the documentation:
https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/diagnostics?view=aspnetcore-8.0#diagnosticsource

I couldn't figure out why it wasn't working but in searching the AspNetCore source, I came across this pull request for Metrics#46834

In theKestrelServerImpl theDiagnosticSource passed in theServiceContext isnull and not passed in from theKestrelServerImpl constructor callingCreateServiceContext.

TheServiceContext.DiagnosticSource property is referenced inHttpProtocol - which returns null such that the diagnostic event is not written.

I guess my questions are:

Was this intended with the Metrics prototype PR work? If so, what was the decision for removing the diagnostic source events? And if so, can the supporting documentation be updated?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp