<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Java serverless not correlating due to due to potentially malformed header in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720482#M2041</link>
    <description>&lt;P&gt;Catherine,&lt;/P&gt;&lt;P&gt;It appears that the value of the correlation header you are trying to consume on input is "&lt;SPAN&gt;com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is definitely not a valid header, where did you obtain it from?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To give you an idea of what you should be expecting to see, an example of a valid header is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;appId=4113*ctrlguid=1539290818*acctguid=e2c8a068-be66-46a4-a0d3-aeff5f18ecc9*btid=532007*guid=&lt;STRONG&gt;efbe5515-1e93-496c-9f53-47c1640069e73&lt;/STRONG&gt;*ts=34869499416608*cidfrom=7500*unresolvedexitid=139411*&lt;STRONG&gt;exitguid=40&lt;/STRONG&gt;*cidto={[UNRESOLVED][139411]}*etypeorder=HTTP&lt;/PRE&gt;&lt;P&gt;You should get a string of that form returned to you when you call&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;getCorrelationHeader()&lt;/FONT&gt; on the ExitCall object you created in the upstream lambda.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Warm regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Thu, 27 Feb 2020 13:36:04 GMT</pubDate>
    <dc:creator>Peter_Holditch</dc:creator>
    <dc:date>2020-02-27T13:36:04Z</dc:date>
    <item>
      <title>Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720481#M2040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on instrumenting Java Lambda. My environment contains 2 lambdas. the first one is triggering the second one through SNS.&lt;/P&gt;&lt;P&gt;Also, implemented the sns exit call from the first lambda.&lt;/P&gt;&lt;P&gt;Now, I'm trying to correlate the business transaction to be the same as started from the first lambda and passing to the second one.&lt;/P&gt;&lt;P&gt;I'm using Manual Instrumentation and followed AppDynamics documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO45/Manual+Tracer+Instrumentation" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/Manual+Tracer+Instrumentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is a snippet from my code on how I'm fetching the correlation header from an input:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;public &lt;/SPAN&gt;Context &lt;SPAN&gt;handleRequest&lt;/SPAN&gt;(InputStream input&lt;SPAN&gt;, &lt;/SPAN&gt;Context context) {&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;(&lt;SPAN&gt;runAppDynamics&lt;/SPAN&gt;) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;//Instantiate the tracer&lt;BR /&gt;&lt;/SPAN&gt;        Tracer tracer = AppDynamics.&lt;SPAN&gt;getTracer&lt;/SPAN&gt;(context)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;//Automatically Parse the correlation header&lt;BR /&gt;&lt;/SPAN&gt;        InputStream inputStream = InputStreamConverter.&lt;SPAN&gt;convertToMarkSupportedInputStream&lt;/SPAN&gt;(input)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;        try &lt;/SPAN&gt;{&lt;BR /&gt;            String inputAsString = IOUtils.&lt;SPAN&gt;toString&lt;/SPAN&gt;(inputStream&lt;SPAN&gt;, &lt;/SPAN&gt;Charset.&lt;SPAN&gt;forName&lt;/SPAN&gt;(&lt;SPAN&gt;"UTF-8"&lt;/SPAN&gt;))&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            com.appdynamics.serverless.tracers.dependencies.com.google.gson.JsonParser parser = &lt;SPAN&gt;new &lt;/SPAN&gt;JsonParser()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            JsonObject inputObject = parser.parse(inputAsString).getAsJsonObject()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;            if &lt;/SPAN&gt;(inputObject.has(Tracer.&lt;SPAN&gt;APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY&lt;/SPAN&gt;)) {&lt;BR /&gt;                System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"corrHeader in tracer"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;correlationHeader &lt;/SPAN&gt;= inputObject.get(Tracer.&lt;SPAN&gt;APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY&lt;/SPAN&gt;).getAsString()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;            } &lt;SPAN&gt;else &lt;/SPAN&gt;{&lt;BR /&gt;                &lt;SPAN&gt;//Try reading from HTTP headers&lt;BR /&gt;&lt;/SPAN&gt;                &lt;SPAN&gt;if &lt;/SPAN&gt;(inputObject.has(&lt;SPAN&gt;"headers"&lt;/SPAN&gt;)) {&lt;BR /&gt;                    System.&lt;SPAN&gt;out&lt;/SPAN&gt;.println(&lt;SPAN&gt;"corrHeader in headers"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;                    JsonObject httpHeaders = inputObject.getAsJsonObject(&lt;SPAN&gt;"headers"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;                    if &lt;/SPAN&gt;(httpHeaders.has(Tracer.&lt;SPAN&gt;APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY&lt;/SPAN&gt;)) {&lt;BR /&gt;                        &lt;SPAN&gt;correlationHeader &lt;/SPAN&gt;= httpHeaders.get(Tracer.&lt;SPAN&gt;APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY&lt;/SPAN&gt;).getAsString()&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;                    }&lt;BR /&gt;                }&lt;BR /&gt;            }&lt;BR /&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;catch &lt;/SPAN&gt;(IOException e){}&lt;BR /&gt;&lt;BR /&gt;        &lt;SPAN&gt;if&lt;/SPAN&gt;(&lt;SPAN&gt;correlationHeader &lt;/SPAN&gt;== &lt;SPAN&gt;null&lt;/SPAN&gt;) {&lt;BR /&gt;            &lt;SPAN&gt;correlationHeader &lt;/SPAN&gt;= &lt;SPAN&gt;"corrheadertest"&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;        }&lt;BR /&gt;        &lt;SPAN&gt;//Create Transaction&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;transaction &lt;/SPAN&gt;= tracer.createTransaction(&lt;SPAN&gt;correlationHeader&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;//Start the transaction monitoring.&lt;BR /&gt;&lt;/SPAN&gt;        &lt;SPAN&gt;transaction&lt;/SPAN&gt;.start()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;This is the Lambda Test input:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"key": "Content-Type",&lt;BR /&gt;"singularityheader": "com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Every time I test my Lambda it didn't correlate and cloud watch logs return:&lt;/P&gt;&lt;DIV class="cwdb-log-viewer-table-row-group"&gt;&lt;DIV class="cwdb-log-viewer-table-row-details maximized"&gt;&lt;DIV class="content"&gt;[AppDynamics Tracer] [DEBUG]: Creating transaction for header [com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader]&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="cwdb-log-viewer-table-row-group"&gt;&lt;DIV class="cwdb-log-viewer-table-row-details maximized"&gt;&lt;DIV class="content"&gt;[AppDynamics Tracer] [DEBUG]: Processing continuing transaction =&amp;gt; com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="cwdb-log-viewer-table-row-group"&gt;&lt;DIV class="cwdb-log-viewer-table-row-details maximized"&gt;&lt;DIV class="content"&gt;[AppDynamics Tracer] [DEBUG]: Caller chains read =&amp;gt; []&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="cwdb-log-viewer-table-row-group"&gt;&lt;DIV class="cwdb-log-viewer-table-row-details maximized"&gt;&lt;DIV class="content"&gt;[AppDynamics Tracer] [DEBUG]: Not correlating transaction due to potentially malformed header [com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader]&lt;/DIV&gt;&lt;DIV class="content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="content"&gt;I tried to change the value many times to represent valid correlation header, but it gives me the same message for every value I put.&lt;/DIV&gt;&lt;DIV class="content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="content"&gt;Any idea what I'm missing here and what should be a valid correlation header?&lt;/DIV&gt;&lt;DIV class="content"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="content"&gt;Thanks&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 26 Feb 2020 23:08:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720481#M2040</guid>
      <dc:creator>Catherine_Doce</dc:creator>
      <dc:date>2020-02-26T23:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720482#M2041</link>
      <description>&lt;P&gt;Catherine,&lt;/P&gt;&lt;P&gt;It appears that the value of the correlation header you are trying to consume on input is "&lt;SPAN&gt;com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is definitely not a valid header, where did you obtain it from?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To give you an idea of what you should be expecting to see, an example of a valid header is:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;appId=4113*ctrlguid=1539290818*acctguid=e2c8a068-be66-46a4-a0d3-aeff5f18ecc9*btid=532007*guid=&lt;STRONG&gt;efbe5515-1e93-496c-9f53-47c1640069e73&lt;/STRONG&gt;*ts=34869499416608*cidfrom=7500*unresolvedexitid=139411*&lt;STRONG&gt;exitguid=40&lt;/STRONG&gt;*cidto={[UNRESOLVED][139411]}*etypeorder=HTTP&lt;/PRE&gt;&lt;P&gt;You should get a string of that form returned to you when you call&amp;nbsp;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;getCorrelationHeader()&lt;/FONT&gt; on the ExitCall object you created in the upstream lambda.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Warm regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 13:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720482#M2041</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2020-02-27T13:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720483#M2042</link>
      <description>&lt;P&gt;Thanks Peter for your reply.&lt;/P&gt;&lt;P&gt;Actually, I don't know how the correlation header should look like. I tried many entries, but in every time it returns malformed&amp;nbsp;header and generate a new one like:&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[AppDynamics Tracer] [DEBUG]: Correlation Header generated =&amp;gt; com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader@3fee9989&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is why I used it same as the generated value&lt;SPAN&gt;&amp;nbsp;com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader without the sequence&amp;nbsp;number at the end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, I get a header chain generated after that and looks like that:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;HeaderChain{root='appId=300*ctrlguid=1570069847*acctguid=a678f643-40d2-4d5d-8a32-636b904e6186*ts=1582757985080*btid=145515*guid=98faae3f-ddfb-4904-bc01-19078418956d', fromCompChain='174213', toCompChain='', exitTypeCallChain='', exitSubtypeCallChain='', snapshotEnabledSet=false, fromCompIds=[174213], threadCallChainForOutOfProcess='null'}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But, the generated correlation header is not fetched by the second Lambda. Second Lambda code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;public String handleRequest(SNSEvent event, Context context) {

        String snsMsg = "Hello From Lambda To SNS";

       String messasge =  event.getRecords().get(0).getSNS().getMessage();

       String correlationHeader="";

        //Instantiate the tracer
        Tracer tracer = AppDynamics.getTracer(context);


        com.appdynamics.serverless.tracers.dependencies.com.google.gson.JsonParser parser = new JsonParser();
        JsonObject inputObject = parser.parse(messasge).getAsJsonObject();

        if (inputObject.has(Tracer.APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY)) {
            System.out.println("corrHeader in tracer");
            correlationHeader = inputObject.get(Tracer.APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY).getAsString();
            System.out.println(correlationHeader);
        } else {
            //Try reading from HTTP headers
            if (inputObject.has("headers")) {
                System.out.println("corrHeader in headers");
                JsonObject httpHeaders = inputObject.getAsJsonObject("headers");
                if (httpHeaders.has(Tracer.APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY)) {
                    correlationHeader = httpHeaders.get(Tracer.APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY).getAsString();
                    System.out.println(correlationHeader);
                }
            }
        }

        //Create Transaction
        Transaction transaction = tracer.createTransaction(correlationHeader);

        //Start the transaction monitoring.
        transaction.start();

        //Lambda code
        try{
            context.getLogger().log("SNS Message: " + snsMsg);
            context.getLogger().log(event.getRecords().get(0).getSNS().getMessage());
            return null;
        }

        finally {
            transaction.stop();
            AppDynamics.cleanup();
        }
    }
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cloud watch logs that showing receiving message to this Lambda:&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;{
    "singularityheader": "com.appdynamics.serverless.tracers.aws.correlation.CorrelationHeader",
    "msg": "Hello from InitSample to SNS"
}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm still missing something on how to pass the generated header from the first lambda to the second one?&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 22:28:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720483#M2042</guid>
      <dc:creator>Catherine_Doce</dc:creator>
      <dc:date>2020-02-27T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720484#M2043</link>
      <description>&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;I passed a correct formate header to the first lambda and it's succeeded to pass it to the second lambda and correlate the transaction created from the first lambda, but I found that, the first Lambda is correlating to itself.&lt;/P&gt;&lt;P&gt;I want the first Lambda to start the Transaction and generate the correlation header, then fetch this header and send it to the second Lambda.&lt;/P&gt;&lt;P&gt;Any idea how I can fetch the generated header from first Lambda? what Package in AppD I can call it to get the generated header?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 22:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720484#M2043</guid>
      <dc:creator>Catherine_Doce</dc:creator>
      <dc:date>2020-03-02T22:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720485#M2044</link>
      <description>&lt;P&gt;Catherine,&lt;/P&gt;&lt;P&gt;You should create an exit call object and obtain the outgoing correlation header from that, as shown in the code sample in the documentation here:&amp;nbsp;&lt;A href="https://docs.appdynamics.com/display/PRO45/.Manual+Tracer+Instrumentation+v4.5.x#id-.ManualTracerInstrumentationv4.5.x-exit" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/display/PRO45/.Manual+Tracer+Instrumentation+v4.5.x#id-.ManualTracerInstrumentationv4.5.x-exit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I pasted the relevant section below:&lt;/P&gt;&lt;DIV class="line number19 index18 alt2"&gt;&lt;FONT face="andale mono,times"&gt;//Define the createExitCall method to obtain an exitCall object.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number20 index19 alt1"&gt;&lt;FONT face="andale mono,times"&gt;ExitCall exitCall = transaction.createExitCall(callType, identifyingProperties);&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number21 index20 alt2"&gt;&lt;FONT face="andale mono,times"&gt;outgoingHeader =&amp;nbsp; exitCall.getCorrelationHeader();&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number22 index21 alt1"&gt;&lt;FONT face="andale mono,times"&gt;exitCall.start();&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number23 index22 alt2"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number24 index23 alt1"&gt;&lt;FONT face="andale mono,times"&gt;try&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number25 index24 alt2"&gt;&lt;FONT face="andale mono,times"&gt;// Tracer.APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY is the name of the header that should be set&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number26 index25 alt1"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number27 index26 alt2"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(outgoingHeader !=&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;null) {&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number28 index27 alt1"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;conn.setRequestProperty(Tracer.APPDYNAMICS_TRANSACTION_CORRELATION_HEADER_KEY, outgoingHeader);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;// set the correlation header on an HttpURLConnection&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number29 index28 alt2"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number30 index29 alt1"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number31 index30 alt2"&gt;&lt;FONT face="andale mono,times"&gt;// Make the exit call here&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number32 index31 alt1"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number33 index32 alt2"&gt;&lt;FONT face="andale mono,times"&gt;}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;finally&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;{&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number34 index33 alt1"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;exitCall.stop();&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number35 index34 alt2"&gt;&lt;FONT face="andale mono,times"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number36 index35 alt1"&gt;&lt;FONT face="andale mono,times"&gt;}&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="line number36 index35 alt1"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="line number36 index35 alt1"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 03 Mar 2020 12:40:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720485#M2044</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2020-03-03T12:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720486#M2045</link>
      <description>&lt;P&gt;Great Peter, exitcall.getCorrelationHeader(), this what I was looking for.&lt;/P&gt;&lt;P&gt;Noe the first Lambda generates the correlation header then fetch the outgoing header and send it to each Lambda through it's exit call.&lt;/P&gt;&lt;P&gt;Thanks a lot for your help, I'll mark this case as solved.&lt;/P&gt;&lt;P&gt;Please let me know if I need to do anything else, like put ranks for you or anything else should be done when I'm closing a post. This is my first post on AppD community.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 05:58:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720486#M2045</guid>
      <dc:creator>Catherine_Doce</dc:creator>
      <dc:date>2020-03-05T05:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Java serverless not correlating due to due to potentially malformed header</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720487#M2046</link>
      <description>&lt;P&gt;Catherine,&lt;/P&gt;&lt;P&gt;I'm delighted that got you going.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any suggestions as to how we could make this easier to find in the documentation, please let me know.&amp;nbsp; From the inside, it's easy to take too much for granted.&amp;nbsp; What search terms did you try to use to find this?&amp;nbsp; &amp;nbsp;Where would you expect to see it?&lt;/P&gt;&lt;P&gt;Warm, regards,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 11:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Java-serverless-not-correlating-due-to-due-to-potentially/m-p/720487#M2046</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2020-03-05T11:10:24Z</dc:date>
    </item>
  </channel>
</rss>

