Created
June 3, 2020 05:25
-
-
Save yatender-oktalk/dfdbb70c0071f6f4c0b8d5ec2099cf93 to your computer and use it in GitHub Desktop.
opentelemetrydemo_application
This file contains 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 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