-
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
Changes from 1 commit
9bc3711
dd97415
cce54ae
946f04a
91f112b
abeff08
e8f688f
ed16e55
83e1554
b55c467
afe1d0c
579eb5c
dcadfc1
62086f3
a4fda92
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -133,16 +133,16 @@ azure.application-insights.logger.level=error | |
azure.application-insights.channel.in-process.developer-mode=false | ||
# Endpoint address, Default value: https://dc.services.visualstudio.com/v2/track. | ||
azure.application-insights.channel.in-process.endpoint-address=https://dc.services.visualstudio.com/v2/track | ||
# Maximum count of telemetries that will be batched before sending. Default value: 500. | ||
# Maximum count of telemetries that will be batched before sending. Must be between 1 and 1000. Default value: 500. | ||
azure.application-insights.channel.in-process.max-telemetry-buffer-capacity=500 | ||
# Interval to send telemetry. Default value: 5 seconds. | ||
# Interval to send telemetry. Must be between 1 and 300. Default value: 5 seconds. | ||
azure.application-insights.channel.in-process.flush-interval-in-seconds=5 | ||
# Size of disk that we can use. Default value: 10 megabytes. | ||
# Size of disk that we can use. Must be between 1 and 1000. Default value: 10 megabytes. | ||
azure.application-insights.channel.in-process.max-transmission-storage-files-capacity-in-mb=10 | ||
# Enable/Disable throttling on sending telemetry data. Default value: true. | ||
azure.application-insights.channel.in-process.throttling=true | ||
|
||
# Percent of telemetry events that will be sent to Application Insights. Default value: 100% (all telemetry events). | ||
# Percent of telemetry events that will be sent to Application Insights. Must be between 0.0 and 100.0. Default value: 100 (all telemetry events). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should add this comment here : This is important. We can only set specific sampling percentages for UI to be consistent There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't understand, can it be 2/3? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so 100/N = Sampling ratio. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. probably we can create property for N instead? It would be less error prone if we say that N must be between 1 (100%) and 100 (1%). what about 0%, is it valid? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just read the documentation for .NET, it can be 1000 (0.1%) as well. Looks really odd to me, I mean that 1/3 is not really 33 or 33.3 or 33.33, it's 33.(3) which you can properly specify in properties and for this reason per documentation I have to chose closest percentage to 100/N. |
||
azure.application-insights.telemetry-processor.sampling.percentage=100 | ||
# If set only telemetry of specified types will be included. Default value: all telemetries are included; | ||
azure.application-insights.telemetry-processor.sampling.include= | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,15 +160,15 @@ static class InProcess { | |
*/ | ||
private String endpointAddress = TransmissionNetworkOutput.DEFAULT_SERVER_URI; | ||
/** | ||
* Maximum count of telemetries that will be batched before sending. | ||
* Maximum count of telemetries that will be batched before sending. Must be between 1 and 1000. | ||
*/ | ||
private int maxTelemetryBufferCapacity = InProcessTelemetryChannel.DEFAULT_MAX_TELEMETRY_BUFFER_CAPACITY; | ||
/** | ||
* nterval to send telemetry. | ||
* Interval to send telemetry. Must be between 1 and 300. | ||
*/ | ||
private int flushIntervalInSeconds = InProcessTelemetryChannel.DEFAULT_FLUSH_BUFFER_TIMEOUT_IN_SECONDS; | ||
/** | ||
* Size of disk that we can use. | ||
* Size of disk that we can use. Must be between 1 and 1000. | ||
*/ | ||
private int maxTransmissionStorageFilesCapacityInMb = TransmissionFileSystemOutput.DEFAULT_CAPACITY_MEGABYTES; | ||
/** | ||
|
@@ -243,7 +243,7 @@ public void setSampling(Sampling sampling) { | |
|
||
static class Sampling { | ||
/** | ||
* Percent of telemetry events that will be sent to Application Insights. | ||
* Percent of telemetry events that will be sent to Application Insights. Must be between 0.0 and 100.0. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same sampling comment here. |
||
*/ | ||
private double percentage = FixedRateSamplingTelemetryProcessor.DEFAULT_SAMPLING_PERCENTAGE; | ||
/** | ||
|
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.
Does't the default and maximum value both seem to be too low. What do you think? Should we bump up this capacity?
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.
Actually I don't really know what is this property about at all :) probably it's a question to @littleaj that have bumped maximum value from 100 to 1000 recently.
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 this property is used for disk persistence. When the network fails the telemetry gets stored in the disk and when it is restored we transmit that telemetry to the cloud.
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.
@dhaval24 nice to know, added your explanation to the documentation :)