elastic / elastic/apm-server

Add CORS configuration for OpenTelemetry HTTP endpoints

Open
#8,841 4 comments 0 reactions 0 assignees View on GitHub
enhancement OpenTelemetry
Dominant language
Go
Stars
1.3k
Forks
543
Avg merge
1d 18h
Merged PRs (30d)
109

Description

To enable [OpenTelemetry-instrumented browser applications](https://www.elastic.co/guide/en/apm/agent/rum-js/current/configuring-cors.html) to send data to APM Server, we should add CORS, like we support for the Elastic APM RUM JavaScript agent.

We should consider replacing `apm-server.rum.allow_{origins,headers}` with something more general, like `apm-server.cors.allow_{origins,headers}`, and have it apply to all HTTP endpoints.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the existing Elastic APM RUM JavaScript agent CORS configuration and the HTTP endpoint handling. Decide how the proposed general CORS settings should replace or extend apm-server.rum.allow_{origins,headers}; done means OpenTelemetry-instrumented browser applications can send data while existing RUM behavior remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.