Skip to content

OpenTelemetry Support for .NET Aspire #1214

Closed

Description

@NapalmCodes

Is your feature request related to a problem? Please describe.
It would be useful when using a WireMock in .NET Aspire for the OTEL data to be populated as expected in the OTEL dashboard. This facilitates troubleshooting and the development process.

Describe the solution you'd like
I would expect to see appropriate headers like traceparent respected and traces, logs, metrics to be pushed to the OTEL collector behind the dashboard.

Describe alternatives you've considered
N/A

Is your feature request supported by WireMock (java version)? Please provide details.
Based on a quick search it appears an extension might be under development: https://github.com/wiremock/wiremock-otel-extension

Additional context
Add any other context or screenshots about the feature request here.

Activity

  1. self-assigned this
    on Dec 5, 2024
  2. StefH commented on Dec 5, 2024

    @StefH
    Collaborator

    @NapalmCodes
    Looks like a good suggestion, however can you point me to some documents which describe how to build this?

  3. NapalmCodes commented on Dec 6, 2024

    @NapalmCodes
    Author

    I think it would be a matter of installing the extension in the WireMock container and pointing it at the OTEL connection. The Aspire IResourceWithEnvironment interface provides access to all the OTEL_* env vars that can be utilized to send the telemetry to. You can see an example ContainerResource here from my KrakenD component. I then just use those env vars to tell my gateway where to send the logs, metrics and traces to (i.e.: the OTEL collector the Aspire Dashboard runs). Does that help @StefH ?

    A gap for me is how to install the extension. I haven't worked with the Java wiremock solution directly.

  4. petrroll commented on Jan 8, 2026

    @petrroll
    Contributor

    @StefH this is not just a wrapper over the JAVA one, right? And it uses proper kestrel / asp.net http server? If so, then adding support for OTEL is relatively easy.

    In Aspire context it should be fairly easy, just adding otel exporter, see ConfigureOpenTelemetry in any ServiceDefaults of any Aspire project.

  5. StefH commented on Jan 8, 2026

    @StefH
    Collaborator

    @petrroll
    You may create a PR ;-)

  6. petrroll commented on Jan 9, 2026

    @petrroll
    Contributor

    I'm working on something :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions