Skip to content

integration test for fully initialization#253

Draft
xuan-cao-swi wants to merge 1 commit intomainfrom
NH-132823
Draft

integration test for fully initialization#253
xuan-cao-swi wants to merge 1 commit intomainfrom
NH-132823

Conversation

@xuan-cao-swi
Copy link
Contributor

@xuan-cao-swi xuan-cao-swi commented Mar 17, 2026

Description

(AI-generated test case)

This test case simulates the complete workflow of the apm-ruby agent, from initialization through sending a simple HTTP request.

Rather than initializing through the standard require 'solarwinds_apm', it mimics the initialization process defined in otel_config (such as OpenTelemetry::SDK.configure).

  1. SWO components are added after OpenTelemetry initialization, mirroring the otel_config initialization step.
  2. The HTTP request executes the OTLP processor and Oboe sampler logic, simulating real-world interactions.
  3. Finally, the test case asserts span attributes and metrics to verify the expected results.

Test (if applicable)

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.

1 participant