Skip to content

Dvernon: MOB-3260/MOB-3261 - New Options #154

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

Merged
merged 4 commits into from
Aug 2, 2023

Conversation

dvernon-splunk
Copy link
Contributor

Creates new options for:

  • slowRenderingDetectionEnabled - allows user ability to disable slowRenderingDetection
  • spanScheduleDelay - allows user to set their own schedule delay time interval for the BatchSpanProcessor

@theletterf the slowRenderingDetectionEnabled is already mentioned in the docs, but it claims that the default value is false. The default value should be changed to true, as that was the previous default behavior (the customer didn't have a way to turn it off) and it's Android's default behavior as well.

@@ -156,6 +166,11 @@ public let DEFAULT_DISK_CACHE_MAX_SIZE_BYTES: Int64 = 25 * 1024 * 1024
*/
@objc public var sessionSamplingRatio: Double = 1.0

/**
Set the time interval between batch span sampling in seconds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps a more apt description would be "maximum interval between 2 consecutive span exports"

/**
Set the time interval between batch span sampling in seconds
*/
@objc public var spanSchedulingDelay: TimeInterval = 5.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few alternative naming ideas: bspScheduleDelay, batchSpanProcessorScheduleDelay to hint that it's related to OTel's batch span processor? For example in the OTel spec the environment variable corresponding to this option is named OTEL_BSP_SCHEDULE_DELAY

@dvernon-splunk dvernon-splunk merged commit 9522240 into main Aug 2, 2023
@dvernon-splunk dvernon-splunk deleted the dvernon/MOB-3260_MOB-3261_newBuilderOptions branch August 2, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants