Skip to content

Create standalone inferred spans extension #23

Description

@AlexanderWert

Port the existing async-profiler based sampling and JFR parsing into an Otel-SDK extension.

  • packaging of the native dependencies
  • porting the sampler to generate otel-compliant inferred spans.

This is porting "as-is" and does not mean migrating to async profiler 2.x, which could be done at a later time.
Most likely, we will copy and slightly adapt the code. The goal is to keep most of the logic untouched, so that future maintenance changes can be easily ported between the elastig-apm-agent 1.x and this extension.

I think extracting a common abstraction is not worth it, because both projects reside in different git repositories, making releasing potentially complex. In addition we have had only very few maintenance changes on the inferred spans logic in the past, so we do not expect many new issues to come up.

In order to use this extension, users will need to configure and install it via code into their OpenTelemetry SDK instance.

The following tasks are out of scope of this issue and will be done in follow-up PRs:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions