Skip to content

Commit

Permalink
Bump example version to rc3 and remove outdated API example (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
kw7oe authored Oct 24, 2021
1 parent c8e7533 commit ae70775
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions content/en/docs/erlang/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ run as a Release and export spans from.
{{< tabs Erlang Elixir >}}

{{< tab >}}
{deps, [{opentelemetry_api, "~> 1.0.0-rc.1"},
{opentelemetry, "~> 1.0.0-rc.1"}]}.
{deps, [{opentelemetry_api, "~> 1.0.0-rc.3"},
{opentelemetry, "~> 1.0.0-rc.3"}]}.
{{< /tab >}}

{{< tab >}}
def deps do
[
{:opentelemetry_api, "~> 1.0.0-rc.1"},
{:opentelemetry, "~> 1.0.0-rc.1"}
{:opentelemetry_api, "~> 1.0.0-rc.3"},
{:opentelemetry, "~> 1.0.0-rc.3"}
]
end
{{< /tab >}}
Expand Down
5 changes: 1 addition & 4 deletions content/en/docs/erlang/instrumentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,16 @@ Each OTP Application has a `Tracer` registered for it when the `opentelemetry`
Application boots. This can be disabled by setting the Application environment
variable `register_loaded_applications` to `false`. If you want a more specific
named `Tracer` or disable the automatic registration you can register a `Tracer`
either with a name and version or with an Application name and
`opentelemetry` will get the version from the loaded Application. Examples:
with a name and version. Examples:

{{< tabs Erlang Elixir >}}

{{< tab >}}
opentelemetry:register_tracer(test_tracer, <<"0.1.0">>),
opentelemetry:register_application_tracer(myapp),
{{< /tab >}}

{{< tab >}}
OpenTelemetry.register_tracer(:test_tracer, "0.1.0")
OpenTelemetry.register_application_tracer(:myapp)
{{< /tab >}}

{{< /tabs >}}
Expand Down

0 comments on commit ae70775

Please sign in to comment.