Seemed like a great idea until I was assured that the momentum was with Opencensus, not Spandex. Between this and the recently announced merger of Opencensus and OpenTracing, it strikes me that it's a reasonable bet to invest on Opencensus propagation headers instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdint.h> | |
#include <esp_libc.h> | |
#include "freertos/FreeRTOS.h" | |
#include "freertos/task.h" | |
#include "rom/ets_sys.h" | |
#include "driver/uart.h" | |
#include "driver/gpio.h" | |
#include "esp_system.h" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { BoomError } from 'boom'; | |
import { Request, HandlerDecorations, ResponseToolkit } from 'hapi'; | |
import { Agent, IncomingMessage } from 'http'; | |
import { Server, PluginPackage } from 'hapi'; | |
import { ResponseObject } from 'hapi'; | |
export interface ProxyHandlerOptions { | |
host?: string; | |
port?: number | string; | |
protocol?: 'http' | 'https'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
Strikes me I'm just re-inventing poolboy
, here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Opencensus.Honeycomb.PhoenixIntegrationTest do | |
use ExUnit.Case, async: false | |
use Phoenix.ConnTest | |
alias Jason | |
alias Opencensus.Honeycomb.Event | |
alias Opencensus.Honeycomb.Sampler | |
defmodule HelloWeb.OpencensusTracePlug do | |
use Opencensus.Plug.Trace, attributes: [:release] |
Slack workflow inspired by Mikala Easte's presentation risk management without slowing down at Purplecon.
Purplecon haven't yet published the video, and might not, so check out @jpdanner's epic summary.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM elixir:1.9.4-alpine | |
ADD . /root | |
WORKDIR /root | |
RUN mix do local.hex --force, deps.get | |
ENTRYPOINT [] | |
CMD ["mix", "credo", "--strict", "credo732.ex"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@doc "Convert a string or atom to a pascal case string" | |
@spec pascal_case(String.t() | atom()) :: String.t() | |
def pascal_case(name) | |
def pascal_case(name) when is_atom(name), do: name |> Atom.to_string() |> pascal_case() | |
def pascal_case(name) when is_binary(name) do | |
~r{(\W|_)+} | |
|> Regex.split(name) | |
|> Enum.map(&capitalise/1) | |
|> Enum.to_list() |