question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tracking custom requests

See original GitHub issue

Is it possible to track custom requests using this SDK? I am thinking of something similar to C#'s SDK:

public void TrackRequest(string name, DateTimeOffset startTime, TimeSpan duration, string responseCode, bool success)

Link: https://docs.microsoft.com/en-us/dotnet/api/microsoft.applicationinsights.telemetryclient#Microsoft_ApplicationInsights_TelemetryClient_TrackRequest_System_String_System_DateTimeOffset_System_TimeSpan_System_String_System_Boolean_

The reason I’m asking is that I have an API server which can receive requests via web sockets (not just HTTP), and I would like to track these requests as well.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
OsvaldoRosadocommented, May 6, 2017

Sorry! Re-reading this I may have closed too early. It looked like a question on how to do this that was resolved by using trackEvent and forked a feature request for auto collection.

We don’t today have a trackRequest that can be used without a request object, but it does sound like a fair ask to me. Re-opening with an enhancement tag

To answer your previous question, you can use the plain track method for this, but you must construct the telemetry envelope by hand. This will be easier in the next release as we’ll export the classes/types we use within the SDK to handle these data contracts.

0reactions
irakliy81commented, May 7, 2017

No worries! And thank you for re-opening it. I’ll play around with the new SDK once it becomes available.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tracking Custom Network Requests - New Relic Explorers Hub
Hi! I've read over all of the mobile documentation, but I'm confused about which network requests are tracked and when.
Read more >
How do you keep track of custom requests? : r/CreatorsAdvice
I add to a list in notes, then i go back and copy and paste the specifics of the request next to their...
Read more >
Why Your Business Needs a Custom Order Tracking System
Order tracking delivers a more customized, higher-quality purchasing experience for customers. They give internal team members the tools and ...
Read more >
5 Ways Online Stores Can Optimize Custom Order-Tracking ...
5 Ways to Stand Out with Custom Order-Tracking Experiences · 1. Offer a Branded Tracking Experience · 2. Drive Repeat Purchases with Customers...
Read more >
Custom Order Tracking - UltraFlexx
The fastest and easiest way to track your direct custom order shipment anytime throughout the process. For each container that is shipped, you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found