Skip to content
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

Add experimental instrumentation for OpenAI client #497

Merged
merged 19 commits into from
Jan 20, 2025

Update CHANGELOG.next-release.md

2f5d64c
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add experimental instrumentation for OpenAI client #497

Update CHANGELOG.next-release.md
2f5d64c
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results 21-hotspot failed Jan 20, 2025 in 0s

90 passed, 1 failed and 5 skipped

Tests failed

Report Passed Failed Skipped Time
common/build/test-results/test/TEST-co.elastic.otel.common.AbstractSimpleChainingSpanProcessorTest.xml 2✔️ 146ms
common/build/test-results/test/TEST-co.elastic.otel.common.ChainingSpanProcessorAutoConfigurationTest.xml 3✔️ 746ms
common/build/test-results/test/TEST-co.elastic.otel.common.LocalRootSpanTest.xml 4✔️ 16ms
common/build/test-results/test/TEST-co.elastic.otel.common.MutableSpanTest.xml 5✔️ 11ms
common/build/test-results/test/TEST-co.elastic.otel.common.SpanValueTest.xml 26✔️ 168ms
common/build/test-results/test/TEST-co.elastic.otel.common.util.HexUtilsTest.xml 2✔️ 4ms
custom/build/test-results/test/TEST-co.elastic.otel.config.ConfigurationExporterTest.xml 1✔️ 611ms
custom/build/test-results/test/TEST-co.elastic.otel.config.DynamicInstrumentationTest.xml 1✔️ 1ms
custom/build/test-results/test/TEST-co.elastic.otel.config.ReconcileOptionsTest.xml 3✔️ 4ms
custom/build/test-results/test/TEST-co.elastic.otel.ElasticAutoConfigurationCustomizerProviderTest.xml 3✔️ 63ms
custom/build/test-results/test/TEST-co.elastic.otel.SpanStackTraceFilterTest.xml 1✔️ 31ms
custom/build/test-results/test/TEST-co.elastic.otel.SpanStackTraceTest.xml 9✔️ 1s
inferred-spans/build/test-results/test/TEST-co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest.xml 3✔️ 9s
jvmti-access/build/test-results/test/TEST-co.elastic.otel.ResourceExtractionUtilTest.xml 5✔️ 1s
jvmti-access/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingCorrelationTest$CorrelationMemory.xml 6✔️ 307ms
jvmti-access/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingCorrelationTest$ProfilerSocket.xml 9✔️ 65ms
resources/build/test-results/test/TEST-co.elastic.otel.resources.ResourcesAutoConfigurationTest.xml 3✔️ 52ms
smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.AgentFeaturesSmokeTest.xml 1✔️ 2s
smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.AppServerProvidersTest.xml 1✔️ 42s
smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.AwsResourceProvidersTest.xml 5✖️ 2ms
smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.DynamicConfigSmokeTest.xml 1❌ 32s
smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.DynamicInstrumentationSmokeTest.xml 2✔️ 10s

✔️ common/build/test-results/test/TEST-co.elastic.otel.common.AbstractSimpleChainingSpanProcessorTest.xml

2 tests were completed in 146ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.common.AbstractSimpleChainingSpanProcessorTest 2✔️ 146ms

✔️ co.elastic.otel.common.AbstractSimpleChainingSpanProcessorTest

✔️ testAttributeUpdate()
✔️ testSpanDropping()

✔️ common/build/test-results/test/TEST-co.elastic.otel.common.ChainingSpanProcessorAutoConfigurationTest.xml

3 tests were completed in 746ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.common.ChainingSpanProcessorAutoConfigurationTest 3✔️ 746ms

✔️ co.elastic.otel.common.ChainingSpanProcessorAutoConfigurationTest

✔️ noProcessorCreatedWithoutExporter()
✔️ multipleExporterProcessors()
✔️ verifyProcessorOrder()

✔️ common/build/test-results/test/TEST-co.elastic.otel.common.LocalRootSpanTest.xml

4 tests were completed in 16ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.common.LocalRootSpanTest 4✔️ 16ms

✔️ co.elastic.otel.common.LocalRootSpanTest

✔️ checkRemoteSpan()
✔️ checkInferredSpanDetected()
✔️ checkNested()
✔️ checkRemoteParent()

✔️ common/build/test-results/test/TEST-co.elastic.otel.common.MutableSpanTest.xml

5 tests were completed in 11ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.common.MutableSpanTest 5✔️ 11ms

✔️ co.elastic.otel.common.MutableSpanTest

✔️ testAttributesMutations()
✔️ noDoubleWrapping()
✔️ freezeAfterMutation()
✔️ noSpanDataCopyWithoutMutation()
✔️ testAttributesReusedIfNotMutated()

✔️ common/build/test-results/test/TEST-co.elastic.otel.common.SpanValueTest.xml

26 tests were completed in 168ms with 26 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.common.SpanValueTest 26✔️ 168ms

✔️ co.elastic.otel.common.SpanValueTest

✔️ testInvalidSpanDetected()
✔️ [1] Early Span, dense SpanValue
✔️ [2] Early Span, sparse SpanValue
✔️ [3] Early ReadableSpan, dense SpanValue
✔️ [4] Early ReadableSpan, sparse SpanValue
✔️ [5] New Span, dense SpanValue
✔️ [6] New Span, sparse SpanValue
✔️ [7] MutableSpan, dense SpanValue
✔️ [8] MutableSpan, sparse SpanValue
✔️ verifyMutableSpanUnwrapped()
✔️ [1] Early Span, dense SpanValue
✔️ [2] Early Span, sparse SpanValue
✔️ [3] Early ReadableSpan, dense SpanValue
✔️ [4] Early ReadableSpan, sparse SpanValue
✔️ [5] New Span, dense SpanValue
✔️ [6] New Span, sparse SpanValue
✔️ [7] MutableSpan, dense SpanValue
✔️ [8] MutableSpan, sparse SpanValue
✔️ [1] Early Span, dense SpanValue
✔️ [2] Early Span, sparse SpanValue
✔️ [3] Early ReadableSpan, dense SpanValue
✔️ [4] Early ReadableSpan, sparse SpanValue
✔️ [5] New Span, dense SpanValue
✔️ [6] New Span, sparse SpanValue
✔️ [7] MutableSpan, dense SpanValue
✔️ [8] MutableSpan, sparse SpanValue

✔️ common/build/test-results/test/TEST-co.elastic.otel.common.util.HexUtilsTest.xml

2 tests were completed in 4ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.common.util.HexUtilsTest 2✔️ 4ms

✔️ co.elastic.otel.common.util.HexUtilsTest

✔️ bytesToHexString()
✔️ writeHexToByteBuffer()

✔️ custom/build/test-results/test/TEST-co.elastic.otel.config.ConfigurationExporterTest.xml

1 tests were completed in 611ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.config.ConfigurationExporterTest 1✔️ 611ms

✔️ co.elastic.otel.config.ConfigurationExporterTest

✔️ testGeneratedConfigurationDocsAreUpToDate()

✔️ custom/build/test-results/test/TEST-co.elastic.otel.config.DynamicInstrumentationTest.xml

1 tests were completed in 1ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.config.DynamicInstrumentationTest 1✔️ 1ms

✔️ co.elastic.otel.config.DynamicInstrumentationTest

✔️ checkForPublicImplementations()

✔️ custom/build/test-results/test/TEST-co.elastic.otel.config.ReconcileOptionsTest.xml

3 tests were completed in 4ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.config.ReconcileOptionsTest 3✔️ 4ms

✔️ co.elastic.otel.config.ReconcileOptionsTest

✔️ reconcileWithOneDifferentOption()
✔️ reconcileWithoutOneOption()
✔️ reconcileAllOptions()

✔️ custom/build/test-results/test/TEST-co.elastic.otel.ElasticAutoConfigurationCustomizerProviderTest.xml

3 tests were completed in 63ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.ElasticAutoConfigurationCustomizerProviderTest 3✔️ 63ms

✔️ co.elastic.otel.ElasticAutoConfigurationCustomizerProviderTest

✔️ disableExperimentalRuntimeMetrics()
✔️ defaultConfiguration()
✔️ disableCustomResourceProvider()

✔️ custom/build/test-results/test/TEST-co.elastic.otel.SpanStackTraceFilterTest.xml

1 tests were completed in 31ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.SpanStackTraceFilterTest 1✔️ 31ms

✔️ co.elastic.otel.SpanStackTraceFilterTest

✔️ filtering()

✔️ custom/build/test-results/test/TEST-co.elastic.otel.SpanStackTraceTest.xml

9 tests were completed in 1s with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.SpanStackTraceTest 9✔️ 1s

✔️ co.elastic.otel.SpanStackTraceTest

✔️ [1] otel.java.experimental.span-stacktrace.min.duration
✔️ [2] elastic.otel.java.span-stacktrace.min.duration
✔️ [3] elastic.otel.java.span.stacktrace.min.duration
✔️ checkStackTracePresent()
✔️ checkInferredSpansIgnored()
✔️ [1] otel.java.experimental.span-stacktrace.min.duration
✔️ [2] elastic.otel.java.span-stacktrace.min.duration
✔️ [3] elastic.otel.java.span.stacktrace.min.duration
✔️ checkMinDurationRespected()

✔️ inferred-spans/build/test-results/test/TEST-co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest.xml

3 tests were completed in 9s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest 3✔️ 9s

✔️ co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest

✔️ checkAllLegacyOptions(Path)
✔️ ensureOptionsTakePrecedenceOverLegacyOptions()
✔️ checkDisabledbyDefault()

✔️ jvmti-access/build/test-results/test/TEST-co.elastic.otel.ResourceExtractionUtilTest.xml

5 tests were completed in 1s with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.ResourceExtractionUtilTest 5✔️ 1s

✔️ co.elastic.otel.ResourceExtractionUtilTest

✔️ exportResourceToDirectoryIdempotence(Path)
✔️ testContentDoesNotMatch(Path)
✔️ exportResourceToDirectoryInMultipleThreads(Path)
✔️ exportResourceToDirectory(Path)
✔️ exportResourceToDirectory_throwExceptionIfNotFound(Path)

✔️ jvmti-access/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingCorrelationTest$CorrelationMemory.xml

6 tests were completed in 307ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.UniversalProfilingCorrelationTest$CorrelationMemory 6✔️ 307ms

✔️ co.elastic.otel.UniversalProfilingCorrelationTest$CorrelationMemory

✔️ ensureProcessStorageBufferNotGCed()
✔️ testVirtualThreadsStoragePropagatedWithMounts()
✔️ testPlatformThreadStorage()
✔️ testProcessStorage()
✔️ testVirtualThreadsExcludedByDefault()
✔️ enablingVirtualThreadSupportDoesNotThrow()

✔️ jvmti-access/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingCorrelationTest$ProfilerSocket.xml

9 tests were completed in 65ms with 9 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.UniversalProfilingCorrelationTest$ProfilerSocket 9✔️ 65ms

✔️ co.elastic.otel.UniversalProfilingCorrelationTest$ProfilerSocket

✔️ [1] true
✔️ [2] false
✔️ receiveTraceCorrelationMessage(Path)
✔️ receiveProfilerRegistrationMessage(Path)
✔️ badFileName()
✔️ receiveUnknownMessage(Path)
✔️ tooLongFileName()
✔️ decodeTruncatedMessage(Path)
✔️ checkTruncatedMessageHandling(Path)

✔️ resources/build/test-results/test/TEST-co.elastic.otel.resources.ResourcesAutoConfigurationTest.xml

3 tests were completed in 52ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.resources.ResourcesAutoConfigurationTest 3✔️ 52ms

✔️ co.elastic.otel.resources.ResourcesAutoConfigurationTest

✔️ explicitly_disabled()
✔️ explicitly_enabled()
✔️ elastic_defaults()

✔️ smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.AgentFeaturesSmokeTest.xml

1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.example.javaagent.smoketest.AgentFeaturesSmokeTest 1✔️ 2s

✔️ com.example.javaagent.smoketest.AgentFeaturesSmokeTest

✔️ healthcheck()

✔️ smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.AppServerProvidersTest.xml

1 tests were completed in 42s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.example.javaagent.smoketest.AppServerProvidersTest 1✔️ 42s

✔️ com.example.javaagent.smoketest.AppServerProvidersTest

✔️ tomcat()

✔️ smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.AwsResourceProvidersTest.xml

5 tests were completed in 2ms with 0 passed, 0 failed and 5 skipped.

Test suite Passed Failed Skipped Time
com.example.javaagent.smoketest.AwsResourceProvidersTest 5✖️ 2ms

✔️ com.example.javaagent.smoketest.AwsResourceProvidersTest

✖️ beanstalk()
✖️ lambda()
✖️ ec2()
✖️ ecs()
✖️ eks()

❌ smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.DynamicConfigSmokeTest.xml

1 tests were completed in 32s with 0 passed, 1 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.example.javaagent.smoketest.DynamicConfigSmokeTest 1❌ 32s

❌ com.example.javaagent.smoketest.DynamicConfigSmokeTest

❌ flipSending()
	java.lang.AssertionError: java.lang.AssertionError: 
	Expected size: 2 but was: 0 in:
	[]

✔️ smoke-tests/build/test-results/test/TEST-com.example.javaagent.smoketest.DynamicInstrumentationSmokeTest.xml

2 tests were completed in 10s with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.example.javaagent.smoketest.DynamicInstrumentationSmokeTest 2✔️ 10s

✔️ com.example.javaagent.smoketest.DynamicInstrumentationSmokeTest

✔️ flipAllInstrumentation()
✔️ flipMethodInstrumentation()