Skip to content

Instantly share code, notes, and snippets.

@yatender-oktalk
Created June 3, 2020 05:25
Show Gist options
  • Save yatender-oktalk/dfdbb70c0071f6f4c0b8d5ec2099cf93 to your computer and use it in GitHub Desktop.
Save yatender-oktalk/dfdbb70c0071f6f4c0b8d5ec2099cf93 to your computer and use it in GitHub Desktop.
opentelemetrydemo_application
defmodule OpenTelemetryDemo.Application do
# See https://hexdocs.pm/elixir/Application.html
# for more information on OTP Applications
@moduledoc """
OpenTelemetryDemo entry point
"""
use Application
@impl true
def start(_type, _args) do
# We need to register tracer so this is the best place to register it
_ = OpenTelemetry.register_application_tracer(:open_telemetry_demo)
...
children = [
...
]
...
opts = [strategy: :one_for_one, name: open_telemetry_demo.Supervisor]
Supervisor.start_link(children, opts)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment