Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastic Java APM Agent breaks trace logging for SpringBoot #3562

Open
nefsir opened this issue Mar 14, 2024 · 2 comments
Open

Elastic Java APM Agent breaks trace logging for SpringBoot #3562

nefsir opened this issue Mar 14, 2024 · 2 comments
Labels
agent-java community Issues and PRs created by the community triage

Comments

@nefsir
Copy link

nefsir commented Mar 14, 2024

Please find below description along with repo and reproduction steps.

Describe the bug

Trace id in log line is missing when using APM Java agent.

Steps to reproduce

  1. Use code from repo: https://github.com/nefsir/apm-trace-id-issue
  2. Run project and call /dummy endpoint. Log line contains trace id.
  3. Instrument with latest APM (-javaagent:{path-to-agent}/elastic-apm-agent.jar, version that I use is added to repository).
  4. Run project and call /dummy endpoint. Log line does not contain trace id.

Expected behavior

Instrumentation does not impact trace id logging.

@github-actions github-actions bot added agent-java community Issues and PRs created by the community triage labels Mar 14, 2024
@nefsir
Copy link
Author

nefsir commented Mar 14, 2024

From further testing I can tell that disabling instrumentation of opentelemetry solves the problem, not sure what impact it makes.

@jackshirazi
Copy link
Contributor

Hi, disabling opentelemetry instrumentation just means that OpenTelemetry API calls are not handled, if you are not using any OpenTelemetry API it's fine. Please could you re-try with our latest agent and feedback if it's still an issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
agent-java community Issues and PRs created by the community triage
Projects
None yet
Development

No branches or pull requests

2 participants