Repository navigation
v2.33.0 post release changes #3148
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
Changes from all commits
a5835dc
9710891
43ca992
ae7e0c6
443a133
077aae1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ | |
|
|
||
| package com.splunk.opentelemetry.instrumentation.jdbc.mariadb; | ||
|
|
||
| import static java.util.Collections.emptyList; | ||
| import static java.util.Collections.singletonList; | ||
|
|
||
| import com.google.auto.service.AutoService; | ||
|
|
@@ -50,4 +51,17 @@ public List<TypeInstrumentation> typeInstrumentations() { | |
| public boolean isHelperClass(String className) { | ||
| return className.startsWith("com.splunk.opentelemetry.instrumentation"); | ||
| } | ||
|
|
||
| @Override | ||
| public List<String> exposedClassNames() { | ||
| // Statement instrumentation uses MariaDbContextPropagator class with CallDepth to skip | ||
| // instrumenting the nested statement that propagates context to db. This class is loaded in the | ||
| // isolated instrumentation class loader. We expose it to application class loader so that tests | ||
| // can temporarily disable instrumentation with CallDepth to read the curent tracing context | ||
| // from the db. | ||
| return Boolean.getBoolean("jdbcTestMode") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is needed because of switching to non-inline advice. An alternative is to use reflection in the test to get access to the isolated instrumentation class loader and load the class from there. That approach is used in a couple of upstream tests. |
||
| ? singletonList( | ||
| "com.splunk.opentelemetry.instrumentation.jdbc.mariadb.MariaDbContextPropagator") | ||
| : emptyList(); | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
keysmethod is deprecated and now has a default implementation that returns and empty iterable