Replies: 3 comments
-
I should also note that, i specifically want trace ids because each console app also makes some outbound HTTP requests to other services, and i would like it if the trace id that is generated and propagated in that outbound request could also be observed in the console app logs. |
Beta Was this translation helpful? Give feedback.
-
I'd urge you to give SDK a try, it is intended exactly for use cases like this. I find it unlikely that the agent will ever be automatically handle such custom needs. |
Beta Was this translation helpful? Give feedback.
-
linking in duplicate #6238 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Based on what i have observed, mormally, tracing starts in a web server, running some kind of framework like spring, tracing starts from an incoming or outgoing request (either http request or a database call, etc).
I have an application which periodically schedules multiple containers of the same console app, all of whom push their logs to the same sink. I need a way to separate out the logs by which container produced them.
Instrumenting the logs with an individual trace/span id will accomplish this, but for that i need the agent to start instrumenting from the main of the application.
I know i can just add manual instrumentation in the code with the otel SDK, but that's an alternative i'd like to avoid if possible. It's a legacy project and making changes to the dependencies might break things in unexpected ways.
Beta Was this translation helpful? Give feedback.
All reactions