Overview
Application logs are the richest kind of log data because they carry your application’s own context — user IDs, order IDs, feature flags, whatever your code records. When sent through the OpenTelemetry SDK, they also carry trace_id and span_id, which automatically links every log line to the request that produced it.
The approach is the same for every language: instrument your application for traces (covered in APM & Distributed Tracing), then bridge your existing logger to the OTel SDK. Existing log calls in your code do not need to change.
Instument your app
Use Osuite instumentation agent to automatically instrument your code in minutes. It will figure out which libraries are installed in your application and will instument them automatically. You can find it in the Osuite Instrumentation Agent section.
If you have specific logging requirement specify that in the prompt to the agent.