You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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 ContainerResourcehere 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.
@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.
Activity
StefH commentedon Dec 5, 2024
@NapalmCodes
Looks like a good suggestion, however can you point me to some documents which describe how to build this?
NapalmCodes commentedon Dec 6, 2024
I think it would be a matter of installing the extension in the WireMock container and pointing it at the OTEL connection. The Aspire
IResourceWithEnvironmentinterface provides access to all theOTEL_*env vars that can be utilized to send the telemetry to. You can see an exampleContainerResourcehere 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.
petrroll commentedon Jan 8, 2026
@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.
StefH commentedon Jan 8, 2026
@petrroll
You may create a PR ;-)
petrroll commentedon Jan 9, 2026
I'm working on something :)