How to create a Sentry Transaction event from scratch?

I know that the current SDK that I’m using doesn’t support transaction events but I’m willing to create one from scratch (by that converting a SentryEvent over a transaction Event)

So far I noticed the event consumer has changed the address and also the body pattern, still, I managed to send a transaction event and sentry returned an HTTP 200 code, BUT, I can’t see any transactions :C …
Any idea why?

POST https://o201***.ingest.sentry.io/api/1357/envelope/?sentry_key=1d9***********************177&sentry_version=7
Body
{"event_id":"103896fa3e0645cda2c27d9f81604ae4","sent_at":"2020-08-03T23:02:42.746Z"} {"type":"transaction"} {"spans":[{"description":"loading","op":"app","span_id":"aeea20bf4632732a","parent_span_id":"ac0e016680c38c58","start_timestamp":1596490583.3995941,"timestamp":1596490583.3995941,"trace_id":"8f0912f407e145e6ae52822f10e966a5"},{"description":"loaded","op":"app","span_id":"881cf0c310ae1f17","parent_span_id":"ac0e016680c38c58","start_timestamp":1596490583.473789,"timestamp":1596490583.473799,"trace_id":"8f0912f407e145e6ae52822f10e966a5"}],"type":"transaction","timestamp":"2020-08-04T13:48:02.088428+00:00","platform":"csharp","release":"4.8.0 build (500067)","user":{"id":"33*95","ip_address":"{{auto}}","username":"luc*******man"},"contexts":{"trace":{"op":".NetTestCoolBoy","span_id":"ac0e016680c38c58","trace_id":"8f0912f407e145e6ae52822f10e966a5"},"runtime":{"type":"runtime","name":"Mono","version":"6.12.0","raw_description":"Mono 6.12.0 (2020-02/165f4b03417)"},"os":{"type":"os","name":"ANDROID","version":"M"},"device":{"type":"device","timezone":"America/Sao_Paulo","family":"unknown","model":"Unknown Android SDK built for x86","simulator":true,"memory_size":1055379456,"low_memory":null,"free_storage":1582964736}},"breadcrumbs":[{"timestamp":"2020-08-04T13:47:50Z","message":"Login","category":"console"},{"timestamp":"2020-08-04T13:47:54Z","type":"http","data":{"method":"Sync","url":"Cache Not Ready "},"category":"sincronizacao"},{"timestamp":"2020-08-04T13:47:54Z","type":"http","data":{"method":"Sync","url":"Unlock "},"category":"sincronizacao"},{"timestamp":"2020-08-04T13:48:00Z","message":"modoOnline = True","category":"ui.click"},{"timestamp":"2020-08-04T13:48:01Z","type":"navigation","data":{"to":"/Configuracao","from":"/Menu"},"category":"navigation"}],"tags":{"device.hascamera":"True","page_locale":"en-US","uri":"HomePage/ConfiguracoesPage","IsOnline":"True","cpu.model":"unknown x86","Empresa":"3**0","Unidade":"0","user.tipo":"1","modoOnline":"True"},"level":3,"transaction":"*****/Configuracoes","environment":"Dev","sdk":{"packages":[{"name":"nuget:Sentry","version":"2.1.4"}],"name":"sentry.dotnet","version":"2.1.4"},"event_id":"103896fa3e0645cda2c27d9f81604ae4"}
and sentry returned OK {“id”:“103896fa3e0645cda2c27d9f81604ae4”}


gg, found

What did you do to fix it? Also having the issue, sentry returns 200 OK but can’t find the transaction

It was related to the date format that was in the wrong format, the dev docs gives you the correct format

1 Like