Skip to content

Internal - Add kitchen sink sdk config example - #663

Merged
cleverchuk merged 4 commits into
mainfrom
cc/NH-153863
Nov 4, 2026
Merged

cleverchuk merged 4 commits into
mainfrom
cc/NH-153863

Conversation

@cleverchuk

Copy link
Copy Markdown
Contributor

This pull request makes several changes to the SolarWinds OpenTelemetry configuration and metric exporter logic to improve defaults, clarify configuration, and ensure consistent metric export behavior. The most important changes are grouped below:

Metric Exporter Behavior and Implementation:

  • The MetricExporterComponentProvider now always uses delta temporality and base2 exponential bucket histograms for metrics, regardless of any temporality_preference or default_histogram_aggregation settings in the configuration. This is enforced programmatically and verified with new unit tests. [1] [2]
  • Tests have been added to confirm that the exporter ignores configured temporality and histogram aggregation, always using the intended defaults.

Configuration File Updates and Documentation:

  • All sample and test configuration YAML files have had the temporality_preference and default_histogram_aggregation options removed from the meter_provider section, reflecting that these options are ignored for the SolarWinds exporter. [1] [2] [3]
  • The main sample config (sdk-config.yaml) was simplified and clarified to show only the minimum required settings for SolarWinds Observability, with improved comments and removal of unused/legacy options. [1] [2]
  • A new comprehensive example configuration file, sdk-config-kitchen-sink.yaml, was added, documenting all supported options, their defaults, and usage notes, including explicit documentation that swo_otlp always uses delta temporality and base2 exponential histograms.

These changes ensure that users have clear, accurate configuration examples and that metric export behavior is consistent and predictable with the SolarWinds OTLP exporter.

Test services data

  1. e-1712644058766987264
  2. e-1712643928659124224
  3. e-1742334541200846848
  4. e-1777406072376840192

@cleverchuk
cleverchuk requested review from a team as code owners November 3, 2026 22:05
Copilot AI balanced review requested due to automatic review settings November 3, 2026 22:05

Copilot AI left a comment

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.

🟡 Changes recommended

The configuration documentation needs to clarify transaction-name fallback precedence and context-limit units and collector precedence, including replacing the misleading 600 ms TTL example.

2 open issues
What changed in this PR

This PR adds comprehensive SDK configuration guidance and standardizes histogram aggregation for the SolarWinds metric exporter.

Changes:

  • Adds a kitchen-sink configuration example and simplifies the main example for exporting to SolarWinds Observability.
  • Enforces base2 exponential histograms alongside the existing delta-preferred temporality, with tests covering configuration overrides.
  • Removes ignored metric aggregation settings from test and smoke-test configurations.
File Description
smoke-tests/​sdk-config.yaml Removes ignored metric settings.
sdk-config.yaml Provides a minimal SolarWinds export configuration.
sdk-config-kitchen-sink.yaml Documents supported options and example values.
libs/​shared/​src/​test/​resources/​sdk-config.yaml Removes ignored metric settings from shared test configuration.
libs/​shared/​src/​test/​java/​com/​solarwinds/​opentelemetry/​extensions/​config/​provider/​MetricExporterComponentProviderTest.java Tests enforced temporality and histogram aggregation.
libs/​shared/​src/​main/​java/​com/​solarwinds/​opentelemetry/​extensions/​config/​provider/​MetricExporterComponentProvider.java Sets base2 exponential histogram aggregation.
custom/​src/​test/​resources/​sdk-config.yaml Removes ignored metric settings from custom test configuration.

Review effort: Balanced

Comment thread sdk-config-kitchen-sink.yaml Resolved
Comment thread sdk-config-kitchen-sink.yaml Resolved
cleverchuk and others added 3 commits November 4, 2026 09:25
Updated context_ttl to a longer duration and added clarifications for context_max_events and context_max_backtraces.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Updated comment for swo_response_time to clarify fallback transaction name functionality.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread sdk-config-kitchen-sink.yaml Resolved

@jerrytfleung jerrytfleung left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@cleverchuk
cleverchuk merged commit f3d3257 into main Nov 4, 2026
29 of 30 checks passed
@cleverchuk
cleverchuk deleted the cc/NH-153863 branch November 4, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants