예제 #1
0
        public ScopePropertyConfiguration WithParent(Action <ScopePropertyConfiguration> parentConfiguration = null)
        {
            var parentConfig = new ScopePropertyConfiguration();

            parentConfiguration?.Invoke(parentConfig);
            _parentScope = parentConfig;
            return(this);
        }
예제 #2
0
        public ScopeConfiguration ByName(string name, Action <ScopePropertyConfiguration> properties)
        {
            var propertyConfiguration = new ScopePropertyConfiguration();

            properties?.Invoke(propertyConfiguration);
            return(new ScopeConfiguration()
            {
                NameFilter = name, PropertyConfiguration = propertyConfiguration
            });
        }
예제 #3
0
        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
            });
        }