beyla icon indicating copy to clipboard operation
beyla copied to clipboard

Add manual instrumentation support

Open tang95 opened this issue 7 months ago • 3 comments

Description: Add support for manually creating spans and linking them with auto-instrumented spans in the same trace.

​Use Case:

  • Custom spans for business logic
  • Tracing across hybrid (manual + auto) instrumentation
  • Better control over instrumentation

​Reference: Similar to https://github.com/open-telemetry/opentelemetry-go-instrumentation/issues/352

tang95 avatar May 14 '25 09:05 tang95

Hi, is there any existing design or plan for this feature?

I think it would be very valuable, and I’d like to try implementing it — though I can’t guarantee success yet.

tang95 avatar May 20 '25 01:05 tang95

hey @tang95, AFAIK we don't have design nor plans (at least this quarter) to work on this. It would be great if you want to help us! You can share your ideas here first and we discuss them or try to come up with a PoC in a PR. thanks!

marctc avatar May 20 '25 08:05 marctc

I am also looking for this. My use-case would be injecting the trace / span ID into logs. For that I would have to be able to retrieve the auto-generated span context from my go application.

msvechla avatar May 30 '25 08:05 msvechla