AugustArchive / sentry-ktor

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

Home Page:https://auguwu.github.io/sentry-ktor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸͺŸ 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.

About

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

https://auguwu.github.io/sentry-ktor

License:MIT License


Languages

Language:Kotlin 98.4%Language:Shell 1.6%