Sentry DSN not detected
So I was redoing how I start the Sentry extension, to use
enableIfDSN
instead of doing the null check myself, and I noticed the Sentry extension was failing to initialize, and reverted it and it is still failing. So I don't know if this could have been caused by the latest changes? My bot is unable to start now if a Sentry DSN is set.
I put a breakpoint in SentryAdapter.init
and I can see that the DSN is available:
Then on Sentry.java
, line 187, there is a applyOptionsConfiguration
function, it takes optionsConfiguration
(which still has the settings there) and options
, which is empty....Solution:
I've pushed, should be up in 10-15 mins, hopefully it works
Setting sentry's context
So I recently upgraded to the latest snapshot, and I'm trying to migrate this:
```kotlin
sentry?.captureException(e) {
setContexts(...
Solution:
See the announcement I just made - I've added two parameters to the capture functions, which should be sufficient
translations not translating
https://github.com/mazziechai/kose-kata/blob/main/src/main/kotlin/cafe/ferret/kosekata/extensions/UtilityExtension.kt
see image for result when calling /clear
why does this happen? i thought
translate
pulls from the bundle in the extension? it works elsewhere...What user/guild specific data is collected by the Sentry extension?
I'm currently in the process of writing up a privacy policy for a bot and just wanted to know what data is sent to Sentry that I'd need to include in it.
Solution:
Sentry submission data
The following sections explain precisely what data Kord Extensions will send to Sentry, assuming you're using the provided default
SentryAdapter
and not your own custom subtype.
Note: Sentry includes a number of options that aid with GDPR (and other privacy law) compliance. It's advisable to look through the settings that Sentry provides, and it's important to anonymise (or delete) Sentry events when the information is no longer needed....How would I utilize the new InteractionContext type?
I have this code currently:
```kotlin
return components {
if (references.any() && referencedNotes.isNotEmpty()) {
ephemeralStringSelectMenu {...
Solution:
it should probably be
InteractionContext<*, *, *, *>
rightCannot import via gradle
Just setting up a new project.
Depen:
implementation("com.kotlindiscord.kord.extensions:kord-extensions:1.5.6")
repo contains mavenCentral()
, gradle is verion 8.2
Error: (Could Not Resolve: URI): https://paste.learnspigot.com/eyakecayet.csharp...Solution:
Didnt know that would throw an error
```kt
kotlin {
jvmToolchain(8) // <- this should be 17...