public void OneActivityWorkItemWithTags() { using (var scope = new ActivityScope(s_httpIn)) { scope.AddTag("route", "/foo/bar"); scope.AddTag("usedid", "1239"); } }
public virtual Response <ConfigurationSetting> Add(ConfigurationSetting setting, CancellationToken cancellationToken = default) { using ActivityScope scope = new ActivityScope(s_configClientAdd); scope.AddTag("key", setting?.Key); try { using Request request = CreateAddRequest(setting); Response response = _pipeline.SendRequest(request, cancellationToken); switch (response.Status) { case 200: case 201: return(CreateResponse(response)); default: throw response.CreateRequestFailedException(); } } catch (Exception e) { scope.SetStatus(e); throw; } }