Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/opentelemetry/src/otel_resource_detector.erl
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ add_service_instance(Resource) ->
case erlang:node() of
nonode@nohost ->
ServiceInstanceId = otel_id_generator:generate_trace_id(),
ServiceInstanceResource = otel_resource:create([{'service.instance.id', ServiceInstanceId}]),
ServiceInstanceResource = otel_resource:create([{'service.instance.id', unicode:characters_to_binary(ServiceInstanceId)}]),
Comment thread
Annosha marked this conversation as resolved.
Outdated
otel_resource:merge(ServiceInstanceResource, Resource);
ServiceInstance ->
ServiceInstance1 = erlang:atom_to_binary(ServiceInstance, utf8),
Expand All @@ -290,7 +290,7 @@ add_service_instance(Resource) ->
end;
ServiceInstance ->
ServiceInstanceResource = otel_resource:create([{'service.instance.id',
otel_utils:assert_to_binary(ServiceInstance)}]),
unicode:characters_to_binary(ServiceInstance)}]),
Comment thread
Annosha marked this conversation as resolved.
Outdated
otel_resource:merge(ServiceInstanceResource, Resource)
end.

Expand Down