public async Task Connect(string instanceName, TracerValue tags) { if (_connectionId == null) { _connectionId = await _remoteServiceClient.Connect(instanceName, tags); } }
public ScopeConfiguration ByTag(string tag, TracerValue value, Action <ScopePropertyConfiguration> properties) { var propertyConfiguration = new ScopePropertyConfiguration(); properties?.Invoke(propertyConfiguration); return(new ScopeConfiguration() { TagFilter = new TagFilter() { Tag = tag, Value = value, MatchOperation = MatchOperation.Equals }, PropertyConfiguration = propertyConfiguration }); }
public async Task <string> Connect(string instanceName, TracerValue value) { try { var data = new ConnectionData { InstanceName = instanceName, Value = value }; var content = AsJson(data); var result = await _client.PostAsync("Receiver/Connect", content); result.EnsureSuccessStatusCode(); return(await result.Content.ReadAsAsync <string>()); } catch (Exception ex) { Trace.TraceError(ex.ToString()); throw ex; } }
public SetPropertyEvent(string scopeId, string propertyName, TracerValue value) { ScopeId = scopeId; PropertyName = propertyName; Value = value; }
public ITracedScope SetProperty(string propertyName, TracerValue value) { return(this); }
public void Write(string scopeId, string eventName, TracerValue content) { var message = new LogEvent(scopeId, eventName, content, DateTimeOffset.Now); _events.Add(message); }
public void SetProperty(string scopeId, string propertyName, TracerValue value) { var message = new SetPropertyEvent(scopeId, propertyName, value); _events.Add(message); }
public void Write(string scopeId, string eventName, TracerValue content) { }
public void SetProperty(string scopeId, string propertyName, TracerValue tracerValue) { }
public ITracedScope SetProperty(string propertyName, TracerValue value) { _connection.SetProperty(Id, propertyName, value); return(this); }