Skip to content

document RUM integration for server-side HTML renderingΒ #819

@SylvainJuge

Description

@SylvainJuge

With server-side HTML rendering, the integration of RUM requires to make the generated HTML page include the trace ID, span ID and sampling decision directly into the RUM setup snippet. This is required because the server-side HTTP request is the first transaction created and the RUM agent can't add any header yet, unlike XHR requests in "single-page-applications" (SPA).

With the classic agent this is documented in the public API: https://www.elastic.co/docs/reference/apm/agents/java/public-api#api-ensure-parent-id

This is however possible to do the same with any OpenTelemetry-based agent, but it's not yet documented.

Two things are needed for this:

  • adding opentelemetry API to the application (gradle/maven variants).
  • modifying the HTML template: as many variants as there are template engines, but we should probably document it for JSP which is the most "basic but standard" one.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions