Fork me on GitHub
#clojurescript
<
2018-12-03
>
mdallastella10:12:27

Hi everyone. I'm trying to use the new Sentry Javascript SDK ("@sentry/browser") in clojurescript, does anyone have a working example? Or should I go with the "old" implementation? (raven)

royalaid16:12:08

I have a functional impl, its basically the same as raven with some small changes in config

royalaid16:12:16

but I am using shadow-cljs to compile

royalaid16:12:38

so if you need externs to might have to roll your own or use raven

royalaid16:12:20

(defn init []
  (.init Sentry #js{:dsn (env/config :SENTRY_DSN)
                    :release (env/config :release)
                    :environment (env/config :release-flag)
                    :dataCallback append-log})
  (.configureScope Sentry #(.setTag % "stack" (env/config :STACKNAME)))
  )

4
sova-soars-the-sora20:12:51

favorite library for user authentication? [fb, goog, twitter, etc?]

sova-soars-the-sora20:12:25

authentication is often such a pain i make lots of my applications anonymous/no-login lol

NoahTheDuke20:12:02

buddy-sign, buddy-auth, and crypto-password have worked well in the app I run

sova-soars-the-sora20:12:39

funcool/buddy-sign?

sova-soars-the-sora20:12:26

looks delightful! thank you. the documentation already appeals to me.

NoahTheDuke20:12:46

you're welcome! it and buddy-auth are great, very easy to use

sova-soars-the-sora20:12:45

Noah have you ever gone to Conj?

NoahTheDuke20:12:50

Nope! What's that?

sova-soars-the-sora20:12:05

clojure conference

NoahTheDuke20:12:42

oh cool! when does it happen?