Skip to content

0.25.0

Latest

Choose a tag to compare

@sentry-release-bot sentry-release-bot released this 18 Mar 22:20

Features

  • Add generic log APIs with explicit level parameter (#520)
// New APIs:
// Simple message
Sentry.logger.log(SentryLogLevel.INFO, "User logged in")

// Message with parameters
Sentry.logger.log(SentryLogLevel.WARN, "Rate limit reached for %s", endpoint)

// Message with parameters and attributes
Sentry.logger.log(SentryLogLevel.ERROR, "Failed to process %s", request) {
    this["error.code"] = 500
    this["retry"] = true
}

// Full DSL
Sentry.logger.log(SentryLogLevel.FATAL) {
    message("Database connection pool exhausted for %s", dbHost)
    attributes {
        this["database"] = "users"
        this["activeConnections"] = 100
    }
}

Enhancements

  • Support proguardUuid option on JVM target in addition to Android (#533)

Dependencies