dhatim / dropwizard-sentry Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tradier/dropwizard-raven
Dropwizard integration for error logging to Sentry.
License: Apache License 2.0
This project forked from tradier/dropwizard-raven
Dropwizard integration for error logging to Sentry.
License: Apache License 2.0
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/build.yml
actions/checkout v4
actions/setup-java v4
.github/workflows/codeql-analysis.yml
actions/checkout v4
github/codeql-action v3
github/codeql-action v3
github/codeql-action v3
pom.xml
io.dropwizard:dropwizard-bom 4.0.7
io.sentry:sentry 7.9.0
io.sentry:sentry-logback 7.9.0
org.hamcrest:hamcrest 2.2
org.jacoco:jacoco-maven-plugin 0.8.12
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.eluder.coveralls:coveralls-maven-plugin 4.3.0
org.apache.maven.plugins:maven-source-plugin 3.3.1
org.apache.maven.plugins:maven-javadoc-plugin 3.6.3
i know dropwizard-4 is in beta, but i wanted to flag that this is not working.
i also have a branch with the changes necessary for it to to work here: https://github.com/norwood/dropwizard-sentry/tree/dropwizard-4.0.0 if anyone wants to build themselves in the interim
The possibility to use Sentry’s static API, in order to do things like record breadcrumbs, set the current user, or manually send events, would be a nice addition.
Maybe the sentry-spring library (https://docs.sentry.io/clients/java/integrations/#spring) can offer some inspiration?
The sentry-spring library provides Spring support for Sentry via a HandlerExceptionResolver that sends exceptions to Sentry. Once this integration is configured you can also use Sentry’s static API...
Stack Overflow post: https://stackoverflow.com/questions/59393783/dropwizard-how-to-set-the-sentry-user-context-when-using-dhatim-dropwizard-sent
Following configuration doesn't work after upgrading the package from 2.0.12-1 to 2.0.29
- type: sentry
stacktraceAppPackages:
- com.tradeshift
threshold: ERROR
dsn: https://[email protected]/1228780
mdcTags: ['actor', 'tenant']
environment: dev
release: somerelease
throws this error
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Failed on call to `getDeclaredMethods()` on class `org.dhatim.dropwizard.sentry.logging.SentryAppenderFactory`, problem: (java.lang.NoClassDefFoundError) io/sentry/SentryOptions
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.tradeshift.ada.coding.AdaCodingConfiguration["logging"]->io.dropwizard.logging.DefaultLoggingFactory["appenders"]->java.util.ArrayList[1])
Here is the exception we got:
io.dropwizard.configuration.ConfigurationParsingException: configuration.yml has an error:
* Failed to parse configuration at: logging.appenders.[1]; Could not resolve type id 'sentry' as a subtype of `io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>`: known type ids = [console, file, syslog, tcp, tls, udp] (for POJO property 'appenders')
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.example.Configuration["logging"]->io.dropwizard.logging.common.DefaultLoggingFactory["appenders"]->java.util.ArrayList[1])
at io.dropwizard.configuration.ConfigurationParsingException$Builder.build(ConfigurationParsingException.java:277)
at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:177)
at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:94)
at io.dropwizard.core.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:139)
at io.dropwizard.core.cli.ConfiguredCommand.run(ConfiguredCommand.java:85)
.....
Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id 'sentry' as a subtype of `io.dropwizard.logging.common.AppenderFactory<ch.qos.logback.classic.spi.ILoggingEvent>`: known type ids = [console, file, syslog, tcp, tls, udp] (for POJO property 'appenders')
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: com.example.Configuration["logging"]->io.dropwizard.logging.common.DefaultLoggingFactory["appenders"]->java.util.ArrayList[1])
at com.fasterxml.jackson.databind.exc.InvalidTypeIdException.from(InvalidTypeIdException.java:43)
at com.fasterxml.jackson.databind.DeserializationContext.invalidTypeIdException(DeserializationContext.java:2084)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnknownTypeId(DeserializationContext.java:1575)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._handleUnknownTypeId(TypeDeserializerBase.java:298)
at com.fasterxml.jackson.databind.jsontype.impl.TypeDeserializerBase._findDeserializer(TypeDeserializerBase.java:165)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedForId(AsPropertyTypeDeserializer.java:151)
at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:136)
at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:263)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer._deserializeFromArray(CollectionDeserializer.java:361)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:244)
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: renovate.json
Error type: The renovate configuration file contains some invalid settings
Message: packageRules[0]: Each packageRule must contain at least one match* or exclude* selector. Rule: {"automerge":true}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.