microsoft / microsoft/aspire

Add OTEL HTTP support for JS client apps

Open
#12,834 0 comments 3 reactions 0 assignees View on GitHub
area-telemetry javascript
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

#12538 fixes many parts of this. But it doesn't fix .WithHttpOtelCollector(). Browser apps need to use HTTP and can't use gRPC for OTEL. Aspire currently lacks OTEL support for client-side JS apps. This feature request would specifically address the gap so browser-based telemetry can be collected using HTTP endpoints rather than gRPC.

### Describe the solution you'd like

Enable OpenTelemetry HTTP collector support for client-side JavaScript apps in Aspire. This requires ensuring that .WithHttpOtelCollector() is implemented and exposed correctly for JS apps that cannot use gRPC. Implementation should include dashboard and annotation updates for proper exposure and configuration.

### Additional context

Referencing previous work in #12538, which improves many aspects for JS apps, but specifically leaves out OTEL HTTP support in browser environments. Required for browser-based telemetry and improved JS developer experience.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.