Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

startTransaction manually #42

Closed
iCyberon opened this issue Mar 24, 2016 · 4 comments
Closed

startTransaction manually #42

iCyberon opened this issue Mar 24, 2016 · 4 comments
Labels

Comments

@iCyberon
Copy link

Hey @watson,

Have a question regarding manual starting of transactions that could be useful when using WebSockets for instance. I saw that startTransaction and endTransaction methods were added. Can we use these methods? Is there anything else that needs to be done manually to get proper stats?

Thanks :)

@watson
Copy link
Member

watson commented Mar 25, 2016

@iCyberon You can also create custom traces. Note that the API for working with custom traces is still in beta, so it might change in the future. You can read about it here: https://github.com/opbeat/opbeat-node/wiki/Application-Instrumentation#custom-traces

@pstadler
Copy link

pstadler commented Jul 5, 2016

I want to set this up for a service based on the SMTP protocol and I'm wondering if I can simply pass non-HTTP, but SMTP related status codes as result[1]. Could there be some implications or is this possible w/o messing up reporting / alerting in the dashboard?

Anyway, I wanted to thank you for your excellent support so far. Looking forward to attend your talk in Amsterdam this year.

[1] http://www.serversmtp.com/en/smtp-error

@watson
Copy link
Member

watson commented Jul 5, 2016

@pstadler if you are referring to the status property on the transaction object, then it's currently just used to display the graphs on the performance pages. All numeric status codes in the 2xx range will be grouped together, all 3xx together and so forth. But it's only used for grouping in the graphs. A non numeric status code will still work though, but it will not be part of the existing groups.

@pstadler
Copy link

pstadler commented Jul 5, 2016

Alright, thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants