Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 31 20:08
    fernandoGN starred getsentry/sentry-dotnet
  • Jan 27 09:29

    bruno-garcia on gh-pages

    Documentation upload (compare)

  • Jan 27 09:23

    bruno-garcia on master

    dep: Bump Sentry.Protocol 1.0.4 (compare)

  • Jan 26 15:07
    jovenbarola starred getsentry/sentry-dotnet
  • Jan 25 12:14
    F1nZeR synchronize #163
  • Jan 25 12:06
    F1nZeR opened #163
  • Jan 25 12:02
  • Jan 22 18:48
    bruno-garcia commented #103
  • Jan 22 18:43
    prencher commented #103
  • Jan 22 16:11
    wuh95 commented #161
  • Jan 22 15:34
    bruno-garcia commented #161
  • Jan 22 15:32
    bruno-garcia commented #161
  • Jan 22 15:17
    wuh95 commented #161
  • Jan 22 15:15
    wuh95 commented #161
  • Jan 22 14:07
    bruno-garcia labeled #162
  • Jan 22 14:07
    bruno-garcia labeled #162
  • Jan 22 14:07
    bruno-garcia labeled #162
  • Jan 22 14:07
    bruno-garcia opened #162
mike searcy
@gooddadmike_gitlab
that meUser line was nothing ignore
mike searcy
@gooddadmike_gitlab
Ok I think I found a problem. You guys have some kind of length or character checks on User.Username?
I my actual System provided user name is Searcy, Michael (ext) (MO RC-US MM-MMF PRD PRP) and this appears o be breaking my configuration
it looks like it's a character limit
mike searcy
@gooddadmike_gitlab
Scope.Username character limit of 42. Not documented anywhere so far as I can tell
Bruno Garcia
@bruno-garcia
mike searcy
@gooddadmike_gitlab

all I know is this
Username = "Casey, Kenneth (MO RC-US MM-MMF OP LVL)"
worked when manually set and this
Username = "Searcy, Michael (ext) (MO RC-US MM-MMF PRD PRP)"
failed.

And then this passed:
Username = "Searcy, Michael(ext) (MO RC-US MM-MMF PRD"

Bruno Garcia
@bruno-garcia
hm
mike searcy
@gooddadmike_gitlab
OK. Sorry Bruno, I think I was temporarily insane there
I'm using PushScope() for my Usage-Tracker call and all is well but I would like to be able to unset my o.Release. How would I do that?
I need to disable reflection and not have any value for Release for this project. I am passing it in but as a executing_assembly_release tag
Bruno Garcia
@bruno-garcia
@gooddadmike_gitlab could you set it to an empty string? would that do the job/
@/all I’m leaving on a month long trip where I’ll be totally offline. I’m sorry I won’t be able to answer questions but I’ll do my best to handle the backlog once I’m back!
mike searcy
@gooddadmike_gitlab
Setting it to "" doesn't work. I can try string.Empty
Andrew Hay
@a7drew
Hey, I created a new UWP project (targeting Windows Build 17134) with a single button that divides by zero to crash the app. Installed Sentry v1.1.2, and called the Sentry init() function (with the appropriate DSN argument) during the app OnLaunched() event. I'm expecting Sentry to report that UWP app crash, but I'm not seeing it. Next, I added an app UnhandledException handler and manually called SentrySdk.CaptureException(e.Exception), but still not reporting to the portal, even after app restarts. The only thing that reported the error to the portal was an init() immediately before manually reporting the error. I feel like I'm missing something.
using (SentrySdk.Init((options) =>
    {
        options.Dsn = new Dsn(myDsn);
        options.Environment = "Dev";
    }))
{
    SentrySdk.CaptureException(e.Exception);
}
Andrew Hay
@a7drew
FWIW, the using wrapper is somehow important inside the UnhandledException handler ^^^, when expressed as two separate statements in that handler, the exception is not reported.
Bruno Garcia
@bruno-garcia
@a7drew short answer is that UWP isn’t supported yet. It being native would require some work with regards to symbolication.
capturing a message should work though
Unhandled exceptions are automatically captured btw
since the SDK already hooks to the AppDomain.Current.UnhandledException
Bruno Garcia
@bruno-garcia
Andrew Hay
@a7drew
@bruno-garcia thanks! I do get manual messages to work using the above "using wrapper" technique, but it appears the AppDomain.Current.UnhandledException doesn't fire the handler that's registered inside SentrySdk. It's not a deal breaker, since we can manually register a handler and send a message. It's curious why the "using wrapper" technique is required, while two separate statements (init() and captureException() without a using wrapper) does not work on UWP.
Bruno Garcia
@bruno-garcia
@a7drew sending events to sentry is an asynchronous operation. CaptureException will add an object to an in-memory queue that wakes a Task awaiting asynchronously which sends the event to Sentry (does the serialization and the network I/O).
If you call CaptureSomething and close the app immediately, there might be not enough time for the backgroun thread to send the event
the Dispose handle returned by Init is a way for you to block until the in-memory queue is empty (all events sent) or N seconds have elapsed (default 2 seconds)
that’s why you need the using block or a try/finally
the internal hook to AppDomain.UnhandledException does call Dispose before exiting (if the app is about to terminate). That’s because in such case, the finally blocks are not executed and hence the events would be lost otherwise.
so if you are hooking to that event yourself, if the EventArgs property IsTerminating is true, make sure to dispose of the SDK. (One way to do it, if you don’t have a reference to the IDisposable returned by Init is to call SentrySdk.Close which will flush the current Hub in the scope).
Bruno Garcia
@bruno-garcia
I’m curious though why the SDK’s hook to UnhandledException doesn’t work. It’s important that it does since this is the automatic error detection the SDK needs to offer.
but again, UWP is something we haven’t looked into. And it has it’s contraints (a big one it being native code so not JIT brings many challanges, including symbolication)
kanadaj
@kanadaj
@bruno-garcia I really want the features of Sentry 10, but there is no way to deploy that on my own server right now without going insane reading all the implementation details, and we have far too much traffic (understand, potential for errors; we can easily generate some tens of thousands of errors in an hour when things go sideways...) for Sentry Cloud >_>Plus my business partner would be mad if we paid for Sentry when we have an entire perfectly capable Kubernetes cluster...
Bruno Garcia
@bruno-garcia
Sentry.io can process whatever load you throw at it. That shouldn’t be a reason not to use it
the product evolves and becomes more complex, that’s just how oit works unfortunately. It’s also complex for us to run sentry.io, specially with the volume of events that we injest.
Sentry isn’t free right now for you either because as u see you are spending time on it, running updates, paying for hardware etc. So perhaps SaaS is a viable option for you.
Bruno Garcia
@bruno-garcia
@/all We’ve released a 2.0.0-beta. The breaking changes might not affect you code-wise but might generate new groups: https://github.com/getsentry/sentry-dotnet
would be great if y’all could give it a try and give some feedback
kanadaj
@kanadaj
It doesn't really cost me money, our new servers run Kubernetes anyway, adding Sentry via docker is trivial
It uses barely any CPU and I pay for the extraservers anyway for redundancy
Bruno Garcia
@bruno-garcia
@kanadaj cool,. if that works for u :) happy u are using Sentry
Hjalte Thor
@hjaltethor
Can I initialize Sentry in .net core using .UseSentry() (with options automatically binding from my appsettings.json) and then add a BeforeSend callback later? I tried using SentrySdk.Init but that seems to initialize a new client with no reference to the previous options.
Bruno Garcia
@bruno-garcia
@hjaltethor you can with UseSentry(o => o.BeforeSend) The instance of o will be resolved via the config system
also, I suggest in that case to create a class implementing ISentryEventProcessor and registering in the container. That way you can also get stuff injected in your processor’s constructor, unit test it separately or whatever.
Hjalte Thor
@hjaltethor
@bruno-garcia That's exactly what I needed. Thanks.
Bruno Garcia
@bruno-garcia
@hjaltethor cheers
Bruno Garcia
@bruno-garcia
We’re moving to Discord
The invite link is here: https://discord.gg/Ww9hbqr
Tomasz Repel
@tomzre
Hi, I am just trying add sentry to console application and it not logging any logs until I explicitly tell that I want to capture exception.