Skip to content

Instantly share code, notes, and snippets.

View lysebraate's full-sized avatar

Alfred Lysebraate lysebraate

View GitHub Profile
package no.arktekk.purely.catseffect
import org.scalatest.FunSuite
import cats.{Parallel, effect}
import cats.implicits._
import cats.effect.implicits._
import cats.effect.internals.IOContextShift
import cats.effect.{ContextShift, IO}
class CatsEffectIOAsyncTest extends FunSuite {
GlobalTracer.register(tracer);
DynamicFeature tracing = new ServerTracingDynamicFeature.Builder(tracer)
.withSkipPattern("(\\/app\\/apiadmin\\/ping$|\\/api\\/app\\/v.*\\/view\\/.*$)")
.withTraceSerialization(false)
.build();
env.jersey().register(tracing);
env.servlets()
.addFilter("span-finisher", new SpanFinishingFilter(tracer))
@lysebraate
lysebraate / trace.json
Last active January 29, 2018 10:02
trace.json
{
"data": [
{
"traceID": "95b8f374e549297f",
"spans": [
{
"traceID": "95b8f374e549297f",
"spanID": "f60e01dad7faf91f",
"flags": 1,
"operationName": "serialize",
@lysebraate
lysebraate / jaeger.json
Created January 3, 2018 13:50
Jaeger Query loadfail
{
"data": [
{
"traceID": "9b1096b48ef64ce2",
"spans": [
{
"traceID": "9b1096b48ef64ce2",
"spanID": "9b1096b48ef64ce2",
"flags": 1,
"operationName": "triggerEvent",

Keybase proof

I hereby claim:

  • I am lysebraate on github.
  • I am lysebraate (https://keybase.io/lysebraate) on keybase.
  • I have a public key whose fingerprint is D6AF 2DAE BD3A AB1F 184F C821 B70A 05F5 259A 205D

To claim this, I am signing this object:

@lysebraate
lysebraate / DOMContentLoaded.js
Last active August 15, 2016 14:14
Cycle.js third-party lib
/** @jsx html */
import xs from 'xstream';
import {run} from '@cycle/xstream-run';
import {div, input, p, makeDOMDriver} from '@cycle/dom';
import {html} from 'snabbdom-jsx';
import dragula from 'dragula';
require('./styles.scss');
@lysebraate
lysebraate / 0_reuse_code.js
Last active August 29, 2015 14:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console