AppD Archive

Unable to push Opentelemetry traces from agent/postman client to Appdynamics collector

Muthukumar_Than
New Member

Hi @Ryan.Paredez ,

I am getting "BAD REQUEST" error when I am pushing the trace from Opentelemetry agent to Appdynamics directly.  

Below is the sample request. Pls let me know what is missing/wrong in the request

{
    "resourceSpans": [
        {
            "resource": {
                "attributes": [
                    {
                        "key""service.name",
                        "value": {
                            "stringValue""/HybridISSanityAssets:SanityFlowServiceSuccess"
                        }
                    },
                    {
                        "key""service.namespace",
                        "value": {
                            "stringValue""SanityFlowServiceSuccess"
                        }
                    },
                    {
                        "key""appdynamics.controller.account",
                        "value": {
                            "stringValue""hepburn202405201255302"
                        }
                    },
                    {
                        "key""appdynamics.controller.host",
                        "value": {
                            "stringValue""hepburn202405201255302.saas.appdynamics.com"
                        }
                    },
                    {
                        "key""appdynamics.controller.port",
                        "value": {
                            "stringValue""443"
                        }
                    }
                ]
            },
            "scopeSpans": [
                {
                    "spans": [
                        {
                            "traceId""5B8EFFF798038103D269B633813FC60C",
                            "spanId""EEE19B7EC3C1B174",
                            "parentSpanId""EEE19B7EC3C1B173",
                            "name""/wm-cloud/local/HybridISSanityAssets:SanityChildFlowService",
                            "startTimeUnixNano""1716655854847000000",
                            "endTimeUnixNano""1716655854888000000",
                            "attributes": [
                                {
                                    "key""service.name",
                                    "value": {
                                        "stringValue""SanityChildFlowService"
                                    }
                                },
                                {
                                    "key""cmp",
                                    "value": {
                                        "stringValue""ONPREMISEIS"
                                    }
                                },
                                {
                                    "key""tId",
                                    "value": {
                                        "stringValue""default"
                                    }
                                },
                                {
                                    "key""stg",
                                    "value": {
                                        "stringValue""STAGE_NA"
                                    }
                                },
                                {
                                    "key""hostname",
                                    "value": {
                                        "stringValue""test"
                                    }
                                },
                                {
                                    "key""agentId",
                                    "value": {
                                        "stringValue""default"
                                    }
                                },
                                {
                                    "key""nodeType",
                                    "value": {
                                        "stringValue""flow"
                                    }
                                },
                                {
                                    "key""stat",
                                    "value": {
                                        "stringValue""1"
                                    }
                                }
                            ],
                            "status": {
                                "code"1
                            }
                        }                      
                    ]
                }
            ]
        }
    ]
}

I am stuck here. Your help is much appreciated.

I have to make decision based on this POC.

Tags (2)
0 Karma

Leandro_de_Oliv
Engager

Hi, @Muthukumar.Thangamuthu please share more details about your test. How is your OTEL Collector configuration, what endpoints are you using etc. If possible share your OTEL Collector config file - without sensitive information. 

iamryan
Community Manager
Community Manager

Hi @Muthukumar.Thangamuthu,

I've not been able to find any information for you, but I'm still trying. Have you been able to figure anything out that you can share?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...