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 changelog for OpenAI instrumentation changes #541

Merged
merged 2 commits into from
Feb 12, 2025

Fix PR link

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

Add changelog for OpenAI instrumentation changes #541

Fix PR link
7f01ba1
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results 11-openj9 succeeded Feb 12, 2025 in 1s

144 passed, 0 failed and 8 skipped

Tests passed successfully

Report Passed Failed Skipped Time
common/build/test-results/test/TEST-co.elastic.otel.common.AbstractSimpleChainingSpanProcessorTest.xml 2✔️ 130ms
common/build/test-results/test/TEST-co.elastic.otel.common.ChainingSpanProcessorAutoConfigurationTest.xml 3✔️ 584ms
common/build/test-results/test/TEST-co.elastic.otel.common.LocalRootSpanTest.xml 4✔️ 24ms
common/build/test-results/test/TEST-co.elastic.otel.common.MutableSpanTest.xml 5✔️ 14ms
common/build/test-results/test/TEST-co.elastic.otel.common.SpanValueTest.xml 26✔️ 158ms
common/build/test-results/test/TEST-co.elastic.otel.common.util.HexUtilsTest.xml 2✔️ 6ms
custom/build/test-results/test/TEST-co.elastic.otel.config.ConfigurationExporterTest.xml 1✔️ 360ms
custom/build/test-results/test/TEST-co.elastic.otel.config.DynamicInstrumentationTest.xml 1✔️ 2ms
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✔️ 86ms
custom/build/test-results/test/TEST-co.elastic.otel.SpanStackTraceFilterTest.xml 1✔️ 49ms
custom/build/test-results/test/TEST-co.elastic.otel.SpanStackTraceTest.xml 9✔️ 761ms
inferred-spans/build/test-results/test/TEST-co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest.xml 1✔️ 2✖️ 207ms
instrumentation/openai-client-instrumentation/instrumentation-0.14/build/test-results/test/TEST-co.elastic.otel.openai.v0_14.ChatTest.xml 16✔️ 6s
instrumentation/openai-client-instrumentation/instrumentation-0.14/build/test-results/test/TEST-co.elastic.otel.openai.v0_14.EmbeddingsTest.xml 2✔️ 288ms
instrumentation/openai-client-instrumentation/instrumentation-0.14/build/test-results/test/TEST-co.elastic.otel.openai.v0_14.LiveAPIChatIntegrationTest.xml 3✖️ 1ms
instrumentation/openai-client-instrumentation/instrumentation-0.8/build/test-results/test/TEST-co.elastic.otel.openai.v0_2.ChatTest.xml 16✔️ 6s
instrumentation/openai-client-instrumentation/instrumentation-0.8/build/test-results/test/TEST-co.elastic.otel.openai.v0_2.EmbeddingsTest.xml 2✔️ 288ms
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 4✔️ 2✖️ 95ms
jvmti-access/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingCorrelationTest$ProfilerSocket.xml 9✔️ 80ms
resources/build/test-results/test/TEST-co.elastic.otel.resources.ResourcesAutoConfigurationTest.xml 3✔️ 122ms
testing/integration-tests/agent-internals/build/test-results/test/TEST-DistroResourceAttributesTest.xml 1✔️ 197ms
testing/integration-tests/agent-internals/build/test-results/test/TEST-SpanValueTest.xml 1✔️ 6ms
testing/integration-tests/universal-profiling-test/build/test-results/test/TEST-UniversalProfilingIntegrationTest.xml 1✔️ 65ms
universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.disruptor.PeekingPollerTest.xml 1✔️ 5ms
universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.hostid.ProfilerHostIdApplyingSpanExporterTest.xml 2✔️ 6ms
universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.SpanByIdSetTest.xml 3✔️ 613ms
universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingProcessorAutoConfigTest.xml 4✔️ 212ms
universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingProcessorTest$SharedMemory.xml 3✔️ 1✖️ 19ms
universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingProcessorTest$SpanCorrelation.xml 10✔️ 281ms

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

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

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

✔️ co.elastic.otel.common.AbstractSimpleChainingSpanProcessorTest

✔️ testAttributeUpdate()
✔️ testSpanDropping()

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

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

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

✔️ 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 24ms with 4 passed, 0 failed and 0 skipped.

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

✔️ 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 14ms with 5 passed, 0 failed and 0 skipped.

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

✔️ 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 158ms with 26 passed, 0 failed and 0 skipped.

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

✔️ 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 6ms with 2 passed, 0 failed and 0 skipped.

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

✔️ 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 360ms with 1 passed, 0 failed and 0 skipped.

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

✔️ co.elastic.otel.config.ConfigurationExporterTest

✔️ testGeneratedConfigurationDocsAreUpToDate()

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

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

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

✔️ 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 86ms with 3 passed, 0 failed and 0 skipped.

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

✔️ co.elastic.otel.ElasticAutoConfigurationCustomizerProviderTest

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

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

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

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

✔️ co.elastic.otel.SpanStackTraceFilterTest

✔️ filtering()

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

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

Test suite Passed Failed Skipped Time
co.elastic.otel.SpanStackTraceTest 9✔️ 761ms

✔️ 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 207ms with 1 passed, 0 failed and 2 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest 1✔️ 2✖️ 207ms

✔️ co.elastic.otel.InferredSpansBackwardsCompatibilityConfigTest

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

✔️ instrumentation/openai-client-instrumentation/instrumentation-0.14/build/test-results/test/TEST-co.elastic.otel.openai.v0_14.ChatTest.xml

16 tests were completed in 6s with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.openai.v0_14.ChatTest 16✔️ 6s

✔️ co.elastic.otel.openai.v0_14.ChatTest

✔️ allTheClientOptions()
✔️ testDeveloperMessage()
✔️ captureMessageContent()
✔️ toolsWithFollowupAndCaptureContent()
✔️ disableEvents()
✔️ stream()
✔️ streamAllTheClientOptions()
✔️ toolCalls()
✔️ chat()
✔️ streamWithIncludeUsage()
✔️ connectionError()
✔️ toolCallsWithCaptureMessageContent()
✔️ streamWithCaptureMessageContent()
✔️ multipleChoicesWithCaptureContent()
✔️ streamToolsAndCaptureMessageContent()
✔️ connectionErrorStream()

✔️ instrumentation/openai-client-instrumentation/instrumentation-0.14/build/test-results/test/TEST-co.elastic.otel.openai.v0_14.EmbeddingsTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.openai.v0_14.EmbeddingsTest 2✔️ 288ms

✔️ co.elastic.otel.openai.v0_14.EmbeddingsTest

✔️ basic()
✔️ invalidModel()

✔️ instrumentation/openai-client-instrumentation/instrumentation-0.14/build/test-results/test/TEST-co.elastic.otel.openai.v0_14.LiveAPIChatIntegrationTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.openai.v0_14.LiveAPIChatIntegrationTest 3✖️ 1ms

✔️ co.elastic.otel.openai.v0_14.LiveAPIChatIntegrationTest

✖️ captureMessageContent()
✖️ toolCallsWithCaptureMessageContent()
✖️ streamWithCaptureMessageContent()

✔️ instrumentation/openai-client-instrumentation/instrumentation-0.8/build/test-results/test/TEST-co.elastic.otel.openai.v0_2.ChatTest.xml

16 tests were completed in 6s with 16 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.openai.v0_2.ChatTest 16✔️ 6s

✔️ co.elastic.otel.openai.v0_2.ChatTest

✔️ allTheClientOptions()
✔️ testDeveloperMessage()
✔️ captureMessageContent()
✔️ toolsWithFollowupAndCaptureContent()
✔️ disableEvents()
✔️ stream()
✔️ streamAllTheClientOptions()
✔️ toolCalls()
✔️ chat()
✔️ streamWithIncludeUsage()
✔️ connectionError()
✔️ toolCallsWithCaptureMessageContent()
✔️ streamWithCaptureMessageContent()
✔️ multipleChoicesWithCaptureContent()
✔️ streamToolsAndCaptureMessageContent()
✔️ connectionErrorStream()

✔️ instrumentation/openai-client-instrumentation/instrumentation-0.8/build/test-results/test/TEST-co.elastic.otel.openai.v0_2.EmbeddingsTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.openai.v0_2.EmbeddingsTest 2✔️ 288ms

✔️ co.elastic.otel.openai.v0_2.EmbeddingsTest

✔️ basic()
✔️ invalidModel()

✔️ 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 95ms with 4 passed, 0 failed and 2 skipped.

Test suite Passed Failed Skipped Time
co.elastic.otel.UniversalProfilingCorrelationTest$CorrelationMemory 4✔️ 2✖️ 95ms

✔️ 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 80ms with 9 passed, 0 failed and 0 skipped.

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

✔️ 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 122ms with 3 passed, 0 failed and 0 skipped.

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

✔️ co.elastic.otel.resources.ResourcesAutoConfigurationTest

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

✔️ testing/integration-tests/agent-internals/build/test-results/test/TEST-DistroResourceAttributesTest.xml

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

Test suite Passed Failed Skipped Time
DistroResourceAttributesTest 1✔️ 197ms

✔️ DistroResourceAttributesTest

✔️ checkDistroName()

✔️ testing/integration-tests/agent-internals/build/test-results/test/TEST-SpanValueTest.xml

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

Test suite Passed Failed Skipped Time
SpanValueTest 1✔️ 6ms

✔️ SpanValueTest

✔️ ensureStoredAsFields()

✔️ testing/integration-tests/universal-profiling-test/build/test-results/test/TEST-UniversalProfilingIntegrationTest.xml

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

Test suite Passed Failed Skipped Time
UniversalProfilingIntegrationTest 1✔️ 65ms

✔️ UniversalProfilingIntegrationTest

✔️ checkIntegrationActive()

✔️ universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.disruptor.PeekingPollerTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.disruptor.PeekingPollerTest 1✔️ 5ms

✔️ co.elastic.otel.disruptor.PeekingPollerTest

✔️ testPeekingFunction()

✔️ universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.hostid.ProfilerHostIdApplyingSpanExporterTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.hostid.ProfilerHostIdApplyingSpanExporterTest 2✔️ 6ms

✔️ co.elastic.otel.hostid.ProfilerHostIdApplyingSpanExporterTest

✔️ ensureApplicationProvidedHostIdTakesPrecedence()
✔️ checkHostIdUpdated()

✔️ universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.SpanByIdSetTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.SpanByIdSetTest 3✔️ 613ms

✔️ co.elastic.otel.SpanByIdSetTest

✔️ duplicateAddAndRemove()
✔️ testStaleEntriesExpunged()
✔️ checkLookup()

✔️ universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingProcessorAutoConfigTest.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.UniversalProfilingProcessorAutoConfigTest 4✔️ 212ms

✔️ co.elastic.otel.UniversalProfilingProcessorAutoConfigTest

✔️ checkEnabledButInactiveByDefault()
✔️ testFailureDoesNotCrashAutoConfig()
✔️ testDisabling()
✔️ testAllSettings(Path)

✔️ universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingProcessorTest$SharedMemory.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.UniversalProfilingProcessorTest$SharedMemory 3✔️ 1✖️ 19ms

✔️ co.elastic.otel.UniversalProfilingProcessorTest$SharedMemory

✔️ testProcessStoragePopulated()
✔️ testNestedActivations()
✔️ testRemoteSpanIgnored()
✖️ testVirtualThreadSupport(boolean)

✔️ universal-profiling-integration/build/test-results/test/TEST-co.elastic.otel.UniversalProfilingProcessorTest$SpanCorrelation.xml

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

Test suite Passed Failed Skipped Time
co.elastic.otel.UniversalProfilingProcessorTest$SpanCorrelation 10✔️ 281ms

✔️ co.elastic.otel.UniversalProfilingProcessorTest$SpanCorrelation

✔️ bufferCapacityExceeded()
✔️ checkCorrelationFunctional()
✔️ [1] true
✔️ [2] false
✔️ badSocketPath()
✔️ nonLocalRootSpansNotDelayed()
✔️ socketParentDirCreated()
✔️ unsampledSpansNotCorrelated()
✔️ ensureCorrelationDoesNotPreventSpanGC()
✔️ shutdownFlushesBufferedSpans()