Skip to content
This repository has been archived by the owner on Jul 4, 2022. It is now read-only.
/ sentry-ktor Public archive

🪟 Pluggable Ktor plugin to implement Sentry for error handling and request contexts.

License

Notifications You must be signed in to change notification settings

AugustArchive/sentry-ktor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪟 Ktor Plugin for Sentry

Pluggable Ktor plugin to implement Sentry for error handling and request contexts.

What is this library?

This basically implements error tracking and appending the request to your Sentry project. It's just simple as installing the plugin, and it will track errors and such.

Example Usage

fun Application.module() {
    install(Sentry) {
        dsn = "..."
        scope { s ->
            s.addTag("blep", "the fluff")
        }
    }
}

Installation

👀 0.0.1 | 📜 Documentation

Gradle

Kotlin DSL

repositories {
    maven {
        url = uri("https://maven.floofy.dev/repo/releases")
    }
}

dependencies {
    implementation("dev.floofy.ktor:ktor-sentry:<VERSION>")
}

Groovy DSL

repositories {
    maven {
        url "https://maven.floofy.dev/repo/releases"
    }
}

dependencies {
    implementation "dev.floofy.ktor:ktor-sentry:<VERSION>"
}

Maven

<repositories>
    <repository>
        <id>noel-maven</id>
        <url>https://maven.floofy.dev/repo/releases</url>
    </repository>
</repositories>
<dependencies>
    <dependency>
        <groupId>dev.floofy.ktor</groupId>
        <artifactId>ktor-sentry</artifactId>
        <version>{{VERSION}}</version>
        <type>pom</type>
    </dependency>
</dependencies>

License

ktor-sentry is released under the MIT License by Noel. Read here for more information.