-
Notifications
You must be signed in to change notification settings - Fork 205
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
Added application insights starter for spring boot #518
Merged
dhaval24
merged 15 commits into
microsoft:spring-boot-starter
from
gavlyukovskiy:spring-boot-starter
Mar 15, 2018
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9bc3711
Added application insights starter for spring boot
gavlyukovskiy dd97415
Added a way to disable default modules, added documentation and readme
gavlyukovskiy cce54ae
Polish readme
gavlyukovskiy 946f04a
Added properties to disable quick pulse integration, all web modules;
gavlyukovskiy 91f112b
Fixed bean ordering issue
gavlyukovskiy abeff08
Added properties for channel and new sampler, created TelemetryType e…
gavlyukovskiy e8f688f
Added documentation to added properties, added default values, update…
gavlyukovskiy ed16e55
Changed sampling configuration, added more tests for autoconfiguration
gavlyukovskiy 83e1554
Changed constants with default values to public in order to use them …
gavlyukovskiy b55c467
Added explicit dependency on TelemetryConfiguration for QuickPulse bean
gavlyukovskiy afe1d0c
Polish
gavlyukovskiy 579eb5c
removed classification of 401s as successful (#606)
littleaj dcadfc1
Merge branch 'master' into spring-boot-starter
gavlyukovskiy 62086f3
Updated documentation regarding configuration values window
gavlyukovskiy a4fda92
Updated documentation of properties
gavlyukovskiy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@gavlyukovskiy Can you explain the need of this? I do understand in the changes above you made this conditional on web application which is auto configured after the default configuration. Is this what you are referring to and believe that TelemetryConfiguration would always be initialized ?
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.
@AutoConfigureAfter
and@AutoConfigureBefore
sets the order of creating bean definitions, but the beans itself are created in different order which controlled by dependency graph. I set explicit dependency onTelemetryConfiguration
to force it to be created beforeWebRequestTrackingFilter
to ensure that callTelemetryConfiguration#getTelemetryModules
will return all modules.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.
@gavlyukovskiy thank you very much. Also about the sampling do you have any idea on getting that in?
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 not sure I'm following the full flow how channel and and processor work together. I understood processor controls whether telemetry should be sent and channel has settings to control telemetry sending, right?
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.
Yes so if processor returns false then the telemetry is dropped and doesn't hit transmission channel. So processor controls if telemetry should be sent or not. Channel is responsible for ultimately pumping the telemetry and it has several characterstics which tell what is the end point what is the buffer size etc.
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.
And for what
TelemetrySampler
is used? Should we dropFixedRateTelemetrySampler
?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.
Yes please drop it. It is not a recommended way to sample. We should mark it as deprecated also :-)
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.
What do you think about moving these types of telemetry to enum:
? With that we can make autocomplete in properties.
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.
@gavlyukovskiy I am okay with this unless this is something globally exposed. Autocompletion would be desirable but I would like to understand what could be the implications if this is globally exposed because we won't be able to remove this until next major version and making it public then people can take explicit dependency on this enum and if we want to make it public in any situation then it should not reside in this processor but rather should have it's home somewhere else where it is more easy to locate and used in other parts of the code base.