Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
ExporterIntegrationTest Class Reference
Inheritance diagram for ExporterIntegrationTest:
Inheritance graph
Collaboration diagram for ExporterIntegrationTest:
Collaboration graph

Protected Member Functions

void SetUp () override
 
void TearDown () override
 

Protected Attributes

distributed_tracer tracer
 
std::shared_ptr< MockTraceExportermock_exporter
 

Detailed Description

Definition at line 402 of file test_distributed_tracing.cpp.

Member Function Documentation

◆ SetUp()

void ExporterIntegrationTest::SetUp ( )
inlineoverrideprotected

Definition at line 407 of file test_distributed_tracing.cpp.

407 {
408 mock_exporter = std::make_shared<MockTraceExporter>();
409 }
std::shared_ptr< MockTraceExporter > mock_exporter

References mock_exporter.

◆ TearDown()

void ExporterIntegrationTest::TearDown ( )
inlineoverrideprotected

Definition at line 411 of file test_distributed_tracing.cpp.

411 {
412 tracer.set_exporter(nullptr);
413 }
void set_exporter(std::shared_ptr< trace_exporter_interface > exporter)
Set the trace exporter for span export.

References kcenon::monitoring::distributed_tracer::set_exporter(), and tracer.

Here is the call graph for this function:

Member Data Documentation

◆ mock_exporter

std::shared_ptr<MockTraceExporter> ExporterIntegrationTest::mock_exporter
protected

Definition at line 405 of file test_distributed_tracing.cpp.

Referenced by SetUp().

◆ tracer

distributed_tracer ExporterIntegrationTest::tracer
protected

Definition at line 404 of file test_distributed_tracing.cpp.

Referenced by TearDown().


The documentation for this class was generated from the following file: