Skip to content

Conversation

@tobiasstadler
Copy link
Contributor

What does this PR do?

Improves service name and version auto detection

Checklist

  • This is an enhancement of existing features, or a new feature in existing plugins
    • I have updated CHANGELOG.asciidoc
    • I have added tests that prove my fix is effective or that my feature works
    • Added an API method or config option? Document in which version this will be introduced
    • I have made corresponding changes to the documentation

@github-actions github-actions bot added agent-java community Issues and PRs created by the community triage labels Feb 3, 2022
@github-actions
Copy link

github-actions bot commented Feb 3, 2022

👋 @tobiasstadler Thanks a lot for your contribution!

It may take some time before we review a PR, so even if you don’t see activity for some time, it does not mean that we have forgotten about it.

Every once in a while we go through a process of prioritization, after which we are focussing on the tasks that were planned for the upcoming milestone. The prioritization status is typically reflected through the PR labels. It could be pending triage, a candidate for a future milestone, or have a target milestone set to it.

@ghost
Copy link

ghost commented Feb 3, 2022

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Reason: null

  • Start Time: 2022-02-03T12:58:52.278+0000

  • Duration: 48 min 59 sec

  • Commit: fc5fbe4

Test stats 🧪

Test Results
Failed 0
Passed 2490
Skipped 16
Total 2506

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • run benchmark tests : Run the benchmark tests.

  • run jdk compatibility tests : Run the JDK Compatibility tests.

  • run integration tests : Run the Agent Integration tests.

  • run end-to-end tests : Run the APM-ITs.

  • run windows tests : Build & tests on windows.

  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@felixbarny felixbarny enabled auto-merge (squash) February 3, 2022 12:58
@felixbarny felixbarny removed the triage label Feb 3, 2022
@felixbarny
Copy link
Member

run elasticsearch-ci/docs

@felixbarny felixbarny merged commit 803550c into elastic:main Feb 3, 2022
@tobiasstadler tobiasstadler deleted the instrument-servletcontextlistener-contex-initialised branch February 3, 2022 13:47
@tobiasstadler
Copy link
Contributor Author

Thank You!

@felixbarny
Copy link
Member

Thank you too!

Do you still have a need for Tomcat, JBoss/WildFly specific instrumentations to init earlier and to make it work for JMS? I think now that we have more fundamentals in place, such asServletServiceNameHelper as well as generic instrumentation via the Servlet API, I'm also more comfortable with adding container-specific instrumentations. That's because if they don't work in a new version of the container, we at least have a fallback that's good enough for most cases.

To make these container-specific instrumentations even more lightweight, I'd just add them in the apm-servlet-plugin. For example under co.elastic.apm.agent.servlet.init or co.elastic.apm.agent.servlet.servicename.

@tobiasstadler
Copy link
Contributor Author

Yes, at the moment I still prefer having the "correct" service name/version early in the process.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants