elastic / elastic/apm-tools

cmd/apmtoo(tracegen): Return stats of otlp

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
4
Forks
11
PR merge metrics
No merged PRs in 30d

Description

It is expected for the client to know the stats of the trace generator, for example, how many events were generated by the agents. For apm-go agent, we pass the `Tracer` so it is possible for the client to get stats without needing the tracegen package to return the info. However, otlp doesn't take the same approach so it is impossible to know how many docs were generated by the otlp. We need to expose the stats of otlp.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the cmd/apmtoo tracegen entry point and inspect how the OTLP generator differs from the apm-go agent's Tracer-based approach. Trace the OTLP path through the tracegen package and determine how the client could receive generated-document counts; done means OTLP statistics are exposed to the client.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.