-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
323 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
sdk/include/opentelemetry/sdk/configuration/extension_span_exporter_configuration.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/sdk/configuration/document_node.h" | ||
#include "opentelemetry/sdk/configuration/span_exporter_configuration.h" | ||
#include "opentelemetry/sdk/configuration/span_exporter_configuration_visitor.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionSpanExporterConfiguration : public SpanExporterConfiguration | ||
{ | ||
public: | ||
void Accept(SpanExporterConfigurationVisitor *visitor) const override | ||
{ | ||
visitor->VisitExtension(this); | ||
} | ||
|
||
std::string name; | ||
std::unique_ptr<DocumentNode> node; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
31 changes: 31 additions & 0 deletions
31
sdk/include/opentelemetry/sdk/configuration/extension_span_processor_configuration.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/sdk/configuration/document_node.h" | ||
#include "opentelemetry/sdk/configuration/span_processor_configuration.h" | ||
#include "opentelemetry/sdk/configuration/span_processor_configuration_visitor.h" | ||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class ExtensionSpanProcessorConfiguration : public SpanProcessorConfiguration | ||
{ | ||
public: | ||
void Accept(SpanProcessorConfigurationVisitor *visitor) const override | ||
{ | ||
visitor->VisitExtension(this); | ||
} | ||
|
||
std::string name; | ||
std::unique_ptr<DocumentNode> node; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
sdk/include/opentelemetry/sdk/configuration/span_exporter_configuration_visitor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class OtlpSpanExporterConfiguration; | ||
class ZipkinSpanExporterConfiguration; | ||
class ExtensionSpanExporterConfiguration; | ||
|
||
class SpanExporterConfigurationVisitor | ||
{ | ||
public: | ||
virtual void VisitOtlp(const OtlpSpanExporterConfiguration *model) = 0; | ||
virtual void VisitZipkin(const ZipkinSpanExporterConfiguration *model) = 0; | ||
virtual void VisitExtension(const ExtensionSpanExporterConfiguration *model) = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
sdk/include/opentelemetry/sdk/configuration/span_processor_configuration_visitor.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright The OpenTelemetry Authors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
#pragma once | ||
|
||
#include "opentelemetry/version.h" | ||
|
||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace sdk | ||
{ | ||
namespace configuration | ||
{ | ||
|
||
class BatchSpanProcessorConfiguration; | ||
class SimpleSpanProcessorConfiguration; | ||
class ExtensionSpanProcessorConfiguration; | ||
|
||
class SpanProcessorConfigurationVisitor | ||
{ | ||
public: | ||
virtual void VisitBatch(const BatchSpanProcessorConfiguration *model) = 0; | ||
virtual void VisitSimple(const SimpleSpanProcessorConfiguration *model) = 0; | ||
virtual void VisitExtension(const ExtensionSpanProcessorConfiguration *model) = 0; | ||
}; | ||
|
||
} // namespace configuration | ||
} // namespace sdk | ||
OPENTELEMETRY_END_NAMESPACE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.