We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c775d8f commit f22f9ecCopy full SHA for f22f9ec
sdk/include/opentelemetry/sdk/trace/tracer_config.h
@@ -28,6 +28,7 @@ class TracerConfig
28
* @return a boolean indicating if the Tracer is enabled. Defaults to true.
29
*/
30
bool IsEnabled() const noexcept;
31
+ bool operator==(const TracerConfig& other) const noexcept;
32
33
static TracerConfig Disabled();
34
static TracerConfig Enabled();
sdk/src/trace/tracer_config.cc
@@ -40,6 +40,12 @@ bool TracerConfig::IsEnabled() const noexcept
40
{
41
return !disabled_;
42
}
43
+
44
+bool TracerConfig::operator==(const TracerConfig &other) const noexcept
45
+{
46
+ return disabled_ == other.disabled_;
47
+}
48
49
} // namespace trace
50
} // namespace sdk
51
OPENTELEMETRY_END_NAMESPACE
0 commit comments