Forum Discussion

gdavid16's avatar
gdavid16
Icon for Neophyte rankNeophyte
3 months ago

LM APM - Traces - HTTP Post from Powershell Scripts

LM APM - Traces - HTTP Post from Powershell Scripts

i'm trying to work out the details of an HTTP post to create an APM trace entry in LM APM to keep track of our production scripts via traces / spans. 

generally this is not the standard use case, but i'm curious how well it tracks the execution timing of the scripts and all the sub components. 

i found the trace json format for a http request 

https://github.com/open-telemetry/opentelemetry-proto/blob/v1.4.0/examples/trace.json

another 3rd party example: 
Send a Test Span Through an OpenTelemetry Collector | Honeycomb

i have a custom ps object that mirrors the json format, right now when i post to LM using this info: 

Trace Data Forwarding without an OpenTelemetry Collector | LogicMonitor

i get authentication errors, and I'm assuming because the info is outdated. 

 

  • got stuck with this on basically step 1. i had a lot of trouble connecting to LM APM via an API call. anyone have any luck connecting to LM APM Push Metrics or opentelemetry via rest api? 

    all the examples leverage lmv1 api, but i keep getting authentication errors.