-
Notifications
You must be signed in to change notification settings - Fork 962
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
Update Spring Boot example config for Dynatrace #2658
Update Spring Boot example config for Dynatrace #2658
Conversation
Pending on spring-projects/spring-boot#26258. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking if we should keep the original V1 samples too:
- Rename
DynatraceSample
toDynatraceV1Sample
- Reaname
application-dynatrace.yml
toapplication-dynatrace-v1.yml
- Modify the profile in
DynatraceV1Sample
todynatrace-v1
- Copy
DynatraceV1Sample
toDynatraceV2Sample
and add profiledynatrace-v2
- Use the config in this PR and create
application-dynatrace-v2.yml
WDYT?
@jonatan-ivanov These examples are intended as a starting point for new users, right? We should encourage them to use the new v2 registry/API right away rather than starting with the old one at this point. If that would be fine with you, I'd prefer changing the example rather than having both in there. Otherwise your suggested changes would sound alright to me. Let me know what you think. Also, @pirgeo will take over this PR as I'm on vacation. |
@arminru Have a great vacation! :) @arminru @pirgeo I totally get the intention of encouraging V2. What do you think about putting a comment both to the v1 We can also put a |
@jonatan-ivanov I played around with that for a bit, but hit a bump: It seems to be forbidden by the |
Ouch, I see:
A couple of alternatives:
Here's an example for the third option (I reverted your log removal and merged back main): jonatan-ivanov@64e588a I think I would just go with |
@jonatan-ivanov Your suggestions sound good but for now we decided to be less explicit and just added comments indicating that v2 is preferred rather than printing warnings right away. We can always make it more explicit in future. |
Sounds good, thank you for adding the example. |
No description provided.