Skip to content

Add BSP configuration option#2165

Merged
heyams merged 2 commits into
mainfrom
add-bsp-configuration-option
Mar 10, 2022
Merged

Add BSP configuration option#2165
heyams merged 2 commits into
mainfrom
add-bsp-configuration-option

Conversation

@trask

@trask trask commented Mar 9, 2022

Copy link
Copy Markdown
Member

No description provided.

return BatchSpanProcessor.builder(currExporter).setMaxExportBatchSize(1).build();
BatchSpanProcessorBuilder builder = BatchSpanProcessor.builder(currExporter);

String delayMillisStr = System.getenv("APPLICATIONINSIGHTS_PREVIEW_BSP_DELAY_MILLIS");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we not use acronym? it will be long but will be clearer.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

do we want to make this public on azure doc? I know it will be experimental at first.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I renamed it to APPLICATIONINSIGHTS_PREVIEW_BSP_SCHEDULE_DELAY to align with otel naming of the same property:

https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/sdk-environment-variables.md#batch-span-processor

Though I'm hoping this is only for testing and we can find a one-size-fits-all option and remove this config knob.

@heyams heyams merged commit 1cd5b15 into main Mar 10, 2022
@heyams heyams deleted the add-bsp-configuration-option branch March 10, 2022 20:58
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