Giter VIP home page Giter VIP logo

pidget's People

Contributors

dependabot[bot] avatar mausworks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pidget's Issues

Support empty DSN's

The sentry documentation states the following:

If an empty DSN is passed, you should treat it as valid option which signifies disabling the SDK.

Currently, the library throws for an empty DSN.

Sentry.CreateClient raises a System.TypeInitializationException in the UWP release build

Pidget.Client -Version 1.0.3

InnerException.InnerException.StackTrace
bei Pidget.Client.VersionNumber.Get()
bei Pidget.Client.SentryClient..cctor()
bei System.Runtime.CompilerServices.ClassConstructorRunner.EnsureClassConstructorRun(StaticClassConstructionContext* pContext) in f:\dd\ndp\fxcore\CoreRT\src\System.Private.CoreLib\src\System\Runtime\CompilerServices\ClassConstructorRunner.cs: Zeile92

Graceful failures (e.g. Sentry server is unreachable)

One of the missing features from Sentry's list of "expected features".

In 1.0.0 the following should be handled:

  • Non-success status codes (e.g. rejections) (#17 adds support)
  • Soft failures when the Sentry server fails to respond in a reasonable amount of time (e.g. 3s) (#17)
  • Exponential backoff when Sentry fails (don’t continue trying if the server is offline) #26 can be used to handle it.
  • Failover to a standard logging module on errors. #26 adds support, but nothing pre-configured.

Does not work with new DSN:s

The project currently does not work with the new DSN format, which omits the private key.

A IndexOutOfBoundsException occurs when calling Dsn.Create(<new-key-format>)

Cannot resolve scoped service 'Pidget.Client.SentryClient' from root provider

Hi. I'm trying to use your project into my own. It is asp.net core 2.0 app. I have installed the last version from NuGet and tried last from releases. Also tried to create new asp.net core 2.0 project.

Every time I had a startup error:
Unhandled Exception: System.InvalidOperationException: Cannot resolve scoped service 'Pidget.Client.SentryClient' from root provider.

dotnet --info and Startup.cs: https://gist.github.com/offi/2461d0f8e6e10f0c2f9d97c7372312f2

X-Forwarded-For header

I'm using Pidget on a .NET Core app in Linux. The problem is that I use nginx to proxy the requests to the application.

All my Sentry user tags are therefore ip:localhost.

  • A missing feature is the "X-Forwarded-For"-header, to track the user ip.

Honor Sentry’s HTTP 429 Retry-After header

One of the other missing features from the "expected features" list. Closely related to #12, but more elaborate.

I don't think it's a good idea to have the client manage its own "retry"-logic, as I want the client to simply be the "transfer mechanism" in the project. But retrial should be supported at least in the ASP.NET middleware.

Allow arbitrary data

Some objects supports using only arbitrary data such as ExtraData.

Other objects support both arbitrary data and predefined keys. Such as the contexts object and its members.

To support this, dynamic key must be allowed to get set for some objects.

0.3.0 should support:

  • Adding arbitrary data to objects where allowed.

Cannot send exceptions from new MVC project.

This is embarrassing, but … Pidget.AspNet does not currently work with newer versions of AspNetCore MVC … and I don't know since when.

To reproduce

Create a new MVC project and install Pidget.AspNet:

dotnet new mvc --auth None
dotnet add package Pidget.AspNet

Then, follow the instructions from the README in Pidget.AspNet, and set it up.

Then, throw an exception in HomeController / Index(), like so:

    public class HomeController : Controller
    {
        public IActionResult Index()
        {
            throw new Exception("Sorry :(");
            
            return View();
        }

        // ...

The Middleware will throw a NullReferenceException when attempting to extract FrameData, and no error is sent to sentry.

Using Pidget in an ASP.NET .NET 4.6.2 application

I came along from reddit comments to here and want to use your package in one of my projects.

The problem is that how I will integrate it to .net 4.6.2 project in the best way to filter and having some tags sent to sentry and also in a clever way using breadcrumbs.

At the moment I wrote a console app and can write to sentry using the pidget.client but I want to use Pidget.AspNet and capture my 4.6.2 app errors.

Right now we use nlog.
I figured out also nlogs can be sent to pidget right ?

Thanks.

erkin

Before send callback

Pretty much the same as #21. Useful for handling rate-limiting.

Expected functionality:

  • Reject events before sending
  • Add data to to the event
  • See what event data is going to be sent
  • Async support

After send callback

The easiest way to add full support for #13, is to simply not support it, but instead allow the implementor of the library to handle "after-send" as they see fit.

Expected functionality:

  • Inspect the response
  • Async support

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.