Skip to content

Commit

Permalink
Merge pull request #133 from davydog187/resource-attributes
Browse files Browse the repository at this point in the history
OTEL_RESOURCE_(LABELS -> ATTRIBUTES)
  • Loading branch information
tsloughter authored Oct 30, 2020
2 parents 8a99f12 + 859033f commit ee1fc15
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/opentelemetry/src/otel_resource_env_var.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
-export([get_resource/0,
parse/1]).

-define(OS_ENV, "OTEL_RESOURCE_LABELS").
-define(OS_ENV, "OTEL_RESOURCE_ATTRIBUTES").
-define(LABEL_LIST_SPLITTER, ",").
-define(LABEL_KEY_VALUE_SPLITTER, "=").

Expand Down
2 changes: 1 addition & 1 deletion apps/opentelemetry/test/otel_resource_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ all() ->
[startup, os_env_resource, app_env_resource, combining].

startup(_Config) ->
os:putenv("OTEL_RESOURCE_LABELS", "service.name=cttest,service.version=1.1.1"),
os:putenv("OTEL_RESOURCE_ATTRIBUTES", "service.name=cttest,service.version=1.1.1"),

{ok, _} = application:ensure_all_started(opentelemetry),
{_, Tracer} = opentelemetry:get_tracer(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ span_round_trip(_Config) ->

%% insert a couple spans and export to locally running otel collector
verify_export(Config) ->
os:putenv("OTEL_RESOURCE_LABELS", "service.name=my-test-service,service.version=98da75ea6d38724743bf42b45565049238d86b3f"),
os:putenv("OTEL_RESOURCE_ATTRIBUTES", "service.name=my-test-service,service.version=98da75ea6d38724743bf42b45565049238d86b3f"),
Protocol = ?config(protocol, Config),
Port = case Protocol of
grpc ->
Expand Down

0 comments on commit ee1fc15

Please sign in to comment.