rickbansal-mulesoft / otel-mule4-observability-agent

12 stars 6 forks source link

Cannot get an OpenTelemetry SDK connection before the SDK is initialized #14

Closed mspatagundi7 closed 6 months ago

mspatagundi7 commented 7 months ago

Hello Rick,

Initially we were using version 1.0.2 to send traces to Dynatrace and was working fine with Cloudhub deployment. After the recent update you had did, we had downloaded latest 1.3.0 version and updated the connector configuration accordingly. But when we deploy our api to Cloudhub environment with this new version of plugin, the traces are not being sent to Dynatrace, getting error Cannot get an OpenTelemetry SDK connection before the SDK is initialized. PFA for Detailed error log. But when we test the api with plugin version 1.3.0 from our local Anypoint studio, able to send the traces to Dynatrace. We are unable to figure the issue, tried different options, could you please help on this.

Please let me know if needed any other details.

OpenTelemetry version 1.3.0 issue.txt

Thanks, Mahaninga S Patagundi

mspatagundi7 commented 7 months ago

Hello @rickbansal-mulesoft,

Could you please look into this issue whenever you have sometime and help us.

Thanks, Mahaninga S Patagundi

rickbansal-mulesoft commented 7 months ago

Hi, might need to set up a time early next week where you can show me how you're configured. Please provide some date/time options that work for you. Thanks.

On Tue, Feb 6, 2024 at 7:34 AM mspatagundi7 @.***> wrote:

Hello @rickbansal-mulesoft https://github.com/rickbansal-mulesoft,

Could you please look into this issue whenever you have sometime and help us.

Thanks, Mahaninga S Patagundi

— Reply to this email directly, view it on GitHub https://github.com/rickbansal-mulesoft/otel-mule4-observability-agent/issues/14#issuecomment-1929631762, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKKJI6K55MIWGFREFMSFIDYSIWPTAVCNFSM6AAAAABCKVLNZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGYZTCNZWGI . You are receiving this because you were mentioned.Message ID: <rickbansal-mulesoft/otel-mule4-observability-agent/issues/14/1929631762@ github.com>

mspatagundi7 commented 7 months ago

Hello @rickbansal-mulesoft ,

Sorry for the late reply, please confirm is that be fine if I setup a call at 10 to 11AM CST tomorrow(Tuesday). If it is conflict for you Please suggest some time based on your calendar availability.

Thanks, Mahaninga S Patagundi

rickbansal-mulesoft commented 7 months ago

Yes, 10am CT will work. Thanks.

On Mon, Feb 12, 2024 at 12:11 PM mspatagundi7 @.***> wrote:

Hello Rick,

Sorry for the late reply, please confirm is that be fine if I setup a call at 10 to 11AM CST tomorrow(Tuesday). Please suggest some time based on your calendar availability.

Thanks, Mahaninga S Patagundi

— Reply to this email directly, view it on GitHub https://github.com/rickbansal-mulesoft/otel-mule4-observability-agent/issues/14#issuecomment-1939278683, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKKKJI6HJGYDXBOYMU3NY43YTJLOFAVCNFSM6AAAAABCKVLNZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZGI3TQNRYGM . You are receiving this because you were mentioned.Message ID: <rickbansal-mulesoft/otel-mule4-observability-agent/issues/14/1939278683@ github.com>

mspatagundi7 commented 7 months ago

Thank you. I will send an invite.

Thanks, Mahaninga

On Mon, 12 Feb, 2024, 11:59 pm Rick Bansal, @.***> wrote:

Yes, 10am CT will work. Thanks.

On Mon, Feb 12, 2024 at 12:11 PM mspatagundi7 @.***> wrote:

Hello Rick,

Sorry for the late reply, please confirm is that be fine if I setup a call at 10 to 11AM CST tomorrow(Tuesday). Please suggest some time based on your calendar availability.

Thanks, Mahaninga S Patagundi

— Reply to this email directly, view it on GitHub < https://github.com/rickbansal-mulesoft/otel-mule4-observability-agent/issues/14#issuecomment-1939278683>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/AKKKJI6HJGYDXBOYMU3NY43YTJLOFAVCNFSM6AAAAABCKVLNZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZGI3TQNRYGM>

. You are receiving this because you were mentioned.Message ID: <rickbansal-mulesoft/otel-mule4-observability-agent/issues/14/1939278683@ github.com>

— Reply to this email directly, view it on GitHub https://github.com/rickbansal-mulesoft/otel-mule4-observability-agent/issues/14#issuecomment-1939304781, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFTJTYN2HW3KQXE3VDWXOTTYTJNPVAVCNFSM6AAAAABCKVLNZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZGMYDINZYGE . You are receiving this because you authored the thread.Message ID: <rickbansal-mulesoft/otel-mule4-observability-agent/issues/14/1939304781@ github.com>

mspatagundi7 commented 7 months ago

Hi @rickbansal-mulesoft ,

Thank you so much for your kind help, we are able to send the traces to Dynatrace along with queryParams as well now.

As you suggested to deploy api directly from Studio, we had deployed and later compared the dependencies that packaged with the jar that built through pipeline and deployed through Studio, found that few Opentelemetry related jars (Looks those extra jars were needed for latest version of plugin) were missing when built through pipeline. After adding those dependencies in pom.xml, now through pipeline also api is building successfully and able to send trace as well.

Thanks,

Mahaninga