-
Notifications
You must be signed in to change notification settings - Fork 1
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 resource attributes lost moving ReconfigurableOpenTelemetry to opentelemetry-api-plugin #11
Conversation
<opentelemetry-instrumentation.version>2.5.0</opentelemetry-instrumentation.version> | ||
<opentelemetry-semconv.version>1.26.0-alpha</opentelemetry-semconv.version> | ||
<opentelemetry-instrumentation.version>2.6.0</opentelemetry-instrumentation.version> | ||
<opentelemetry-semconv.version>1.25.0-alpha</opentelemetry-semconv.version> |
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.
We revert semconv to 1.25 as opentelemetry instrumentations have a dependency on semconv 1.25.
@kuisathaverat please review |
|
||
@Test | ||
public void test_instantiate_instrumented_http_client() { | ||
ReconfigurableOpenTelemetry openTelemetry = new ReconfigurableOpenTelemetry(); |
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.
should this be in a try-with-resources?
ReconfigurableOpenTelemetry openTelemetry = new ReconfigurableOpenTelemetry(); | |
try (ReconfigurableOpenTelemetry openTelemetry = new ReconfigurableOpenTelemetry()) { |
ReconfigurableOpenTelemetry openTelemetry = new ReconfigurableOpenTelemetry(); | ||
HttpClientBuilder httpClientBuilder = ApacheHttpClientTelemetry.create(openTelemetry).newHttpClientBuilder(); | ||
CloseableHttpClient httpClient = httpClientBuilder.build(); | ||
System.out.println(httpClient); |
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.
Is this supposed to assert something?
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.
yes verify we don't have class loading issues. I'll iterate on the test
public void test_instantiate_instrumented_data_source() { | ||
try (ReconfigurableOpenTelemetry openTelemetry = new ReconfigurableOpenTelemetry()) { | ||
DataSource dataSource = JdbcTelemetry.create(openTelemetry).wrap(new BasicDataSource()); | ||
System.out.println(dataSource); |
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.
Is this supposed to assert something?
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.
Ditto, verify class loading issues. I'll iterate on these tests
Add resource attributes lost moving ReconfigurableOpenTelemetry to opentelemetry-api-plugin.
Default
service.name
,service.namespace
,service.version
,service.instance.id
, andjenkins.url
where no longer populated if default values set by the GUI were mising (eg config as code use cases).Fix for:
Testing done
Submitter checklist