Example #1
0
 public HttpClientTracingDiagnosticProcessor(ITracingContext tracingContext, IExitSegmentContextAccessor contextAccessor, IOptions <SkyApmHttpClientOption> options)
 {
     _tracingContext   = tracingContext;
     _contextAccessor  = contextAccessor;
     _option           = options.Value;
     IgnoreRequestHost = _option?.IgnoreRequestHost ?? new List <string>();
 }
 public ClientDiagnosticProcessor(IExitSegmentContextAccessor segmentContextAccessor,
                                  ITracingContext tracingContext, IConfigAccessor configAccessor)
 {
     _tracingContext         = tracingContext;
     _segmentContextAccessor = segmentContextAccessor;
     _tracingConfig          = configAccessor.Get <TracingConfig>();
 }
 public JimuClientDiagnosticProcessor(ITracingContext tracingContext
                                      , IExitSegmentContextAccessor exitSegmentContextAccessor
                                      )
 {
     _tracingContext             = tracingContext;
     _exitSegmentContextAccessor = exitSegmentContextAccessor;
 }
 public SqlClientTracingDiagnosticProcessor(ITracingContext tracingContext,
                                            IExitSegmentContextAccessor contextAccessor, IConfigAccessor configAccessor)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = contextAccessor;
     _tracingConfig   = configAccessor.Get <TracingConfig>();
 }
 public HttpClientTracingDiagnosticProcessor(ITracingContext tracingContext,
                                             IExitSegmentContextAccessor contextAccessor,
                                             IEnumerable <IRequestDiagnosticHandler> requestDiagnosticHandlers)
 {
     _tracingContext            = tracingContext;
     _contextAccessor           = contextAccessor;
     _requestDiagnosticHandlers = requestDiagnosticHandlers.Reverse();
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="tracingContext"></param>
 /// <param name="contextAccessor"></param>
 /// <param name="component"></param>
 public SqlBuilderTracingDiagnosticProcessor(
     ITracingContext tracingContext,
     IExitSegmentContextAccessor contextAccessor,
     StringOrIntValue?component = null)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = contextAccessor;
     _component       = component ?? Components.SQLCLIENT;
 }
Example #7
0
 public MySqlDataDiagnosticProcessor(ITracingContext tracingContext,
                                     IExitSegmentContextAccessor contextAccessor)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = contextAccessor;
     MySqlTrace.Listeners.Clear();
     MySqlTrace.Listeners.Add(this);
     MySqlTrace.Switch.Level         = SourceLevels.Information;
     MySqlTrace.QueryAnalysisEnabled = true;
 }
 public EntityFrameworkCoreSegmentContextFactory(
     IEnumerable <IEntityFrameworkCoreSpanMetadataProvider> spanMetadataProviders,
     ITracingContext tracingContext, ILocalSegmentContextAccessor localSegmentContextAccessor,
     IExitSegmentContextAccessor exitSegmentContextAccessor)
 {
     _spanMetadataProviders       = spanMetadataProviders;
     _tracingContext              = tracingContext;
     _localSegmentContextAccessor = localSegmentContextAccessor;
     _exitSegmentContextAccessor  = exitSegmentContextAccessor;
 }
Example #9
0
 public CapTracingDiagnosticProcessor(ITracingContext tracingContext,
                                      IEntrySegmentContextAccessor entrySegmentContextAccessor,
                                      IExitSegmentContextAccessor exitSegmentContextAccessor,
                                      ILocalSegmentContextAccessor localSegmentContextAccessor)
 {
     _tracingContext              = tracingContext;
     _exitSegmentContextAccessor  = exitSegmentContextAccessor;
     _localSegmentContextAccessor = localSegmentContextAccessor;
     _entrySegmentContextAccessor = entrySegmentContextAccessor;
 }
 public HttpClientTracingDiagnosticProcessor(ITracingContext tracingContext,
                                             IExitSegmentContextAccessor contextAccessor,
                                             IEnumerable <IRequestDiagnosticHandler> requestDiagnosticHandlers,
                                             IConfigAccessor configAccessor)
 {
     _tracingContext             = tracingContext;
     _contextAccessor            = contextAccessor;
     _requestDiagnosticHandlers  = requestDiagnosticHandlers.Reverse();
     _tracingConfig              = configAccessor.Get <TracingConfig>();
     _httpClientDiagnosticConfig = configAccessor.Get <HttpClientDiagnosticConfig>();
 }
Example #11
0
 public MySqlTracingDiagnosticProcessor(
     ITracingContext tracingContext,
     IExitSegmentContextAccessor contextAccessor)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = contextAccessor;
     //to use this,you should add "logging=true" to the connection string
     MySqlTrace.Listeners.Clear();
     MySqlTrace.Listeners.Add(this);
     MySqlTrace.Switch.Level         = SourceLevels.Information;
     MySqlTrace.QueryAnalysisEnabled = true;
 }
Example #12
0
 public CacheTracingDiagnosticProcessor(ITracingContext tracingContext,
                                        ILocalSegmentContextAccessor localSegmentContextAccessor
                                        , IEntrySegmentContextAccessor entrySegmentContextAccessor
                                        , IExitSegmentContextAccessor exitSegmentContextAccessor
                                        , IConfigAccessor configAccessor)
 {
     _tracingContext              = tracingContext;
     _exitSegmentContextAccessor  = exitSegmentContextAccessor;
     _localSegmentContextAccessor = localSegmentContextAccessor;
     _entrySegmentContextAccessor = entrySegmentContextAccessor;
     _tracingConfig = configAccessor.Get <TracingConfig>();
 }
 public SegmentContextFactory(IRuntimeEnvironment runtimeEnvironment,
                              ISamplerChainBuilder samplerChainBuilder,
                              IUniqueIdGenerator uniqueIdGenerator,
                              IEntrySegmentContextAccessor entrySegmentContextAccessor,
                              ILocalSegmentContextAccessor localSegmentContextAccessor,
                              IExitSegmentContextAccessor exitSegmentContextAccessor)
 {
     _runtimeEnvironment          = runtimeEnvironment;
     _samplerChainBuilder         = samplerChainBuilder;
     _uniqueIdGenerator           = uniqueIdGenerator;
     _entrySegmentContextAccessor = entrySegmentContextAccessor;
     _localSegmentContextAccessor = localSegmentContextAccessor;
     _exitSegmentContextAccessor  = exitSegmentContextAccessor;
 }
 public SegmentContextFactory(IRuntimeEnvironment runtimeEnvironment,
                              ISamplerChainBuilder samplerChainBuilder,
                              IEntrySegmentContextAccessor entrySegmentContextAccessor,
                              ILocalSegmentContextAccessor localSegmentContextAccessor,
                              IExitSegmentContextAccessor exitSegmentContextAccessor,
                              IOptions <SkyApmConfig> configAccessor)
 {
     _runtimeEnvironment          = runtimeEnvironment;
     _samplerChainBuilder         = samplerChainBuilder;
     _entrySegmentContextAccessor = entrySegmentContextAccessor;
     _localSegmentContextAccessor = localSegmentContextAccessor;
     _exitSegmentContextAccessor  = exitSegmentContextAccessor;
     _config = configAccessor.Value;
 }
 public SqlClientTracingDiagnosticProcessor(ITracingContext tracingContext,
                                            IExitSegmentContextAccessor contextAccessor)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = contextAccessor;
 }
 public OxygenTracingDiagnosticProcessor(IExitSegmentContextAccessor segmentContextAccessor,
                                         ITracingContext tracingContext)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = segmentContextAccessor;
 }
Example #17
0
 public MongoDiagnosticsProcessor(ITracingContext tracingContext,
                                  IExitSegmentContextAccessor contextAccessor)
 {
     _tracingContext  = tracingContext;
     _contextAccessor = contextAccessor;
 }
Example #18
0
 public ClientDiagnosticProcessor(IExitSegmentContextAccessor segmentContextAccessor,
                                  ITracingContext tracingContext)
 {
     _tracingContext         = tracingContext;
     _segmentContextAccessor = segmentContextAccessor;
 }