Add manual instrumentation support
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
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.
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!
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.