anchor.diff:      end.
   
   service_instance_id_node_name(_Config) ->
  -    try
  -        net_kernel:start([test@instance, shortnames]),
  -        application:unload(opentelemetry),
  -        application:load(opentelemetry),
  -        application:set_env(opentelemetry, resource, #{<<"e">> => <<"f">>}),
  -
  -        otel_resource_detector:start_link(#{resource_detectors => [otel_resource_env_var,
  -                                                                   otel_resource_app_env],
  -                                            resource_detector_timeout => 100}),
  -
  -        Resource = otel_resource_detector:get_resource(),
  -        ?assertMatch(#{<<"service.instance.id">> := <<"test@instance">>,
  -                       <<"e">> := <<"f">>}, otel_attributes:map(otel_resource:attributes(Resource))),
  -
  -        ok
  -    after
  -        net_kernel:stop()
  -    end.
  +    Resource = otel_resource_detector:get_resource(),
  +    ?assertMatch(#{<<"service.instance.id">> := <<"test@instance">>,
  +                   <<"e">> := <<"f">>}, otel_attributes:map(otel_resource:attributes(Resource))),
  +
  +    ok.
   
   service_instance_id_node_id1(_Config) ->
  -    try
  -        net_kernel:start([test@localhost, shortnames]),
  -        application:unload(opentelemetry),
  -        application:load(opentelemetry),
  -        application:set_env(opentelemetry, resource, #{<<"e">> => <<"f">>}),
  -
  -        otel_resource_detector:start_link(#{resource_detectors => [otel_resource_env_var,
  -                                                                   otel_resource_app_env],
  -                                            resource_detector_timeout => 100}),
  -
  -        Resource = otel_resource_detector:get_resource(),
  -        ResourceMap = otel_attributes:map(otel_resource:attributes(Resource)),
  -        ?assertNotMatch(#{<<"service.instance.id">> := <<"test@localhost">>}, ResourceMap),
  -        ?assert(maps:is_key(<<"service.instance.id">>, ResourceMap)),
  -
  -        ok
  -    after
  -        net_kernel:stop()
  -    end.
  +    Resource = otel_resource_detector:get_resource(),
  +    ResourceMap = otel_attributes:map(otel_resource:attributes(Resource)),
  +    ?assertNotMatch(#{<<"service.instance.id">> := <<"test@localhost">>}, ResourceMap),
  +    ?assert(maps:is_key(<<"service.instance.id">>, ResourceMap)),
  +
  +    ok.
   
   service_instance_id_node_id2(_Config) ->
       application:unload(opentelemetry),
  
positive.code:     [startup, startup_env_service_name, os_env_resource, app_env_resource, combining,
       combining_conflicting_schemas, crash_detector, timeout_detector, release_service_name,
       unknown_service_name, release_service_name_no_version, service_instance_id_env,
       service_instance_id_env_attributes, service_instance_id_node_id1, service_instance_id_node_id2,
       service_instance_id_node_name].
  
  startup(_Config) ->
      try
  
negative.code:     after
          os:unsetenv("RELEASE_NAME")
      end.
  
  %%
  
  start_net_kernel_and_detector(NetKernelArgs) ->
      net_kernel:start(NetKernelArgs),
      application:unload(opentelemetry),
      application:load(opentelemetry),
      application:set_env(opentelemetry, resource, #{<<"e">> => <<"f">>}),
  
      otel_resource_detector:start_link(#{resource_detectors => [otel_resource_env_var,
                                                                 otel_resource_app_env],
                                          resource_detector_timeout => 100}),
      ok.
  