bilsch-nice commented on issue #6309:
URL: https://github.com/apache/jmeter/issues/6309#issuecomment-2220504493

   > Hi,
   > 
   > OOM aside, why do you need that complicated piece of code? You run a 
JSR223PreProcessor so you have full access to Groovy runtime, there's no need 
to call the ${__groovy()} function inside again.
   > 
   > I guess you need a unique value to use as trace identifier, this should be 
enough: vars.put("trace_id", UUID.randomUUID().toString()) Sample output: 
ebd7bca8-c365-3b64-8157-11b165df0341
   
   The format of the trace_id needs to conform to the opentelemetry spec. Its a 
32-byte hex string.
   
   I actually switched over to gatling for this load test script. Generating 
the traceid in scala code directly and its proven stable so I've moved on from 
this.
   
   Would be interested in someone else being able to re-create the scenario. If 
I understand the problem just adding the preprocessor with the code I included 
in this issue should be enough to replicate - don't even need to reference the 
variable I suspect.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to