question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Aws Sdk Opentelemetry TracingExecutionInterceptor can not be used with quarkus

See original GitHub issue

Description

With the configuration quarkus.*.interceptors it should be possible to add aws ExecutionInterceptor’s to aws sdk clients. However, the Opentelemetry TracingExecutionInterceptor can not be added this way, because of the follwing exception:

io.quarkus.deployment.configuration.ConfigurationError: quarkus.dynamodb.interceptors (Optional[[io.opentelemetry.instrumentation.awssdk.v2_2.TracingExecutionInterceptor]]) - must list only existing implementations of software.amazon.awssdk.core.interceptor.ExecutionInterceptor

see also #12842 for a similar issue.

Also, TracingExecutionInterceptor does not have a default constructor and cannot be instantiated in the same way it is currently implemented. Normally one would create an instance of TracingExecutionInterceptor using AwsSdkTracing.create(openTelemetry).newExecutionInterceptor().

Implementation ideas

ExecutionInterceptor’s should be discoved and instanciated via CDI to allow the implementation of custom providers.

Also if both quarkus-opentelemetry-exporter-otlp and any quarkus aws extension are included in a project, the Aws Sdk Opentelemetry TracingExecutionInterceptor should automatically be registered (should be configurable).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Legion2commented, Mar 6, 2022

@luneo7 Now I had time to try your workaround and it works, thanks.

0reactions
gsmetcommented, Jan 1, 2022

@kdubb given you have interest in the Amazon Services extensions, I wonder if you would be interested in working on this one? I think we should provide a way to contribute additional interceptors via CDI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using OpenTelemetry - Quarkus
This guide explains how your Quarkus application can utilize OpenTelemetry to provide distributed tracing for interactive web applications.
Read more >
OpenTelemetry with Quarkus to push distributed traces to ...
In this article I want to show how to integrate OpenTelemetry into a Java Quarkus microservice in order to send distributed traces to...
Read more >
New for AWS Distro for OpenTelemetry – Tracing Support is ...
Auto-instrumentation support for Python currently only covers the AWS SDK. You can instrument your applications using other programming ...
Read more >
Distributed Tracing with Quarkus, Python, Open Telemetry and ...
In a microservices world, there is no easy way of attaching a debugger or profiler to one component to understand why it exposes...
Read more >
quarkus - Override log format of OpenTelemetry agent logs
Quarkus uses it's own OpenTelemetry instrumentation, no agent needed. The log format quarkus.log.console.format is a Quarkus specific ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found