rickbansal-mulesoft / otel-mule4-observability-agent

12 stars 6 forks source link

Issue with flow references #2

Closed bijuiv-ms closed 2 years ago

bijuiv-ms commented 2 years ago

When there are flow references in the application, I'm seeing the following null pointer issue in the logs and the trace is not getting forwarded from the referenced flow. Wondering if I'm missing something in the config?

INFO 2022-04-27 00:27:26,291 [[MuleRuntime].uber.04: [customer-app].get:\customer:customer-system-api-config.BLOCKING @86f4eeb] [processor: customer-subflow-1/processors/0; event: 7c73cdb0-c5fb-11ec-a723-147ddab4d7b9] org.mule.runtime.core.internal.context.notification.Policy: NotificationListener org.mule.extension.otel.mule4.observablity.agent.internal.notification.listener.MuleMessageProcessorNotificationListener@34c2fce9 was unable to fire notification MessageProcessorNotification{action=message processor post invoke, processor=customer-subflow-1/processors/0, resourceId=customer-subflow-1, serverId=xyz.xyz..customer-app, timestamp=1651044446290} due to an exception: java.lang.NullPointerException.

bijuiv-ms commented 2 years ago

I think the issue is when using flow references to sub-flows. It works when the flow-ref is to a private flow, but not a sub-flow. Is that a known limitation/expected behavior?

rickbansal-mulesoft commented 2 years ago

Sub-flows are a bit more complicated to handle and will require some additional instrumentation.

rickbansal-mulesoft commented 2 years ago

Might be an issue. I haven't tried it yet. Will spend some time this weekend to see what's going on. Thanks for reporting it.

On Wed, Apr 27, 2022 at 1:58 PM bijuiv-ms @.***> wrote:

I think the issue is when using flow references to sub-flows. It works when the flow-ref is to another flow, but not a sub-flow. Is that a known limitation/expected behavior?

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

-- http://www.mulesoft.com/ Rick Bansal, Strategic Enterprise Architect

Dallas, TX

M 214.476.798 <214.476.7098> @.***

https://www.linkedin.com/company/mulesoft https://twitter.com/mulesoft https://www.facebook.com/MuleSoft https://videos.mulesoft.com/ We're hiring! http://www.mulesoft.com/careers

shilpamallya commented 1 year ago

Hi @rickbansal-mulesoft I am getting the same issue and wondering if you were able to fix it? Is it released in a newer version to use?