Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issuing feedback for open-telemetry#8718 in the form of a patch.
AutoConfigurationCustomizerProvider(and a parallelDeclarativeConfigurationCustomizerProvider). StandaloneAutoConfigureListenerSPI registration never fires —SpiHelperonly piggybacks the listener set while loading other SPIs.getConstructors()[0], which returns no entries for the package-privatePanamaProcessContextPublisher. Switched to a package-private staticcreate()+getDeclaredMethod.MADV_DONTFORK = 0x10isMADV_DONTDUMP. Correct value is10.clock.now()→clock.nanoTime(); the field ismonotonic_published_at_ns.publishUpdatewhennanoTime()hasn't advanced. Any "update" <1ns apart isn't meaningful and would be invisible to readers using the seqlock protocol.Integer.parseInt(java.specification.version)threwNumberFormatExceptionon Java 8 ("1.8"), permanently poisoning the factory singleton.ReflectiveOperationExceptiononly. Broadened to also catchLinkageErrorso native-init failures (e.g.--illegal-native-access=deny) degrade to noop.publishFirstTimenow commits mutable state only after all steps succeed and rolls back native resources on failure.close()writes0to the timestamp and issues afullFence()beforemunmap, giving in-flight readers the spec-defined signal to retry instead of a SIGSEGV window.ProcessContextPublisher.publish/closethrowIOExceptioninstead ofThrowable.ProcessContextPublisher.getInstance(); made the factory package-private.ProcessContextData/SdkProcessContextDatafollowingSdkLogRecordDatapattern. Moved SPI implementations and the data class into.internal.ConfigUtil.getStringso the env-var form works.synchronizedmethods with a dedicatedlockobject with@GuardedByannotations.Throwableso the stack trace is preserved.JvmTestSuiteforjava25Testso the Java-25 tests actually run (fixes the author's open gradle question). Default./gradlew checkruns the OS/JDK-agnostic tests.io.opentelemetry.sdk.processcontext.otel.animalsniffer-conventions(incompatible with JDK 25).osgiServiceLoaderProvides/osgiOptionalPackagesupdated for the new SPIs.@EnabledOnOs(OS.LINUX)on tests that touch/proc/<pid>/mapsor the Panama syscalls.api(":sdk:all")replacing the:sdk:common+:sdk:allsplit.compileOnly(":sdk-extensions:declarative-config")— the declarative-config SPI shouldn't be forced on autoconfigure-only consumers.