Skip to content

Added a testcase for LDEV-5632 #2582

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

Open
wants to merge 2 commits into
base: 6.1
Choose a base branch
from
Open

Conversation

cfmitrah
Copy link
Member

@shane-tw
Copy link
Contributor

shane-tw commented May 29, 2025

Hi. The error only happens when dd-java-agent.jar is used, e.g. via:

LUCEE_JAVA_OPTS=-javaagent:/cfcustom/agents/dd-java-agent.jar -Ddd.trace.otel.enabled=true

Otherwise opentelemetry runs fine on all versions

@shane-tw
Copy link
Contributor

Also the below runs okay:

<cfset createObject("java", "io.opentelemetry.api.trace.Span").current()>

The error only happens when cfdump is used:

<cfdump var="#createObject("java", "io.opentelemetry.api.trace.Span").current()#">

Alternatively, the error also happens when using the below:

<cfset LOCAL.span = createObject("java", "io.opentelemetry.api.trace.Span").current()>
<cfset LOCAL.span.setAttribute("hello", "world")>

Copy link
Contributor

@shane-tw shane-tw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@michaeloffner michaeloffner changed the base branch from 6.1 to 6.2 June 13, 2025 11:38
@michaeloffner michaeloffner changed the base branch from 6.2 to 6.1 June 13, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants