-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from Tianlin-Zhao/origin/propagators
Origin/propagators
- Loading branch information
Showing
8 changed files
with
49 additions
and
35 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
#include "opentelemetry/trace/tracer.h" | ||
#include "opentelemetry/nostd/unique_ptr.h" | ||
#include "opentelemetry/trace/span.h" | ||
#include "opentelemetry/trace/default_span.h" | ||
|
||
#define pass | ||
OPENTELEMETRY_BEGIN_NAMESPACE | ||
namespace trace { | ||
class DefaultTracer: public Tracer { | ||
public: | ||
~DefaultTracer() = default; | ||
|
||
/** | ||
* Starts a span. | ||
* | ||
* Optionally sets attributes at Span creation from the given key/value pairs. | ||
* | ||
* Attributes will be processed in order, previous attributes with the same | ||
* key will be overwritten. | ||
*/ | ||
nostd::unique_ptr<Span> StartSpan(nostd::string_view name, | ||
const KeyValueIterable &attributes, | ||
const StartSpanOptions &options = {}) noexcept | ||
{ | ||
return nostd::unique_ptr<Span>(new DefaultSpan::GetInvalid()); | ||
} | ||
|
||
void ForceFlushWithMicroseconds(uint64_t timeout) noexcept | ||
{ | ||
pass; | ||
} | ||
|
||
void CloseWithMicroseconds(uint64_t timeout) noexcept | ||
{ | ||
pass; | ||
} | ||
}; | ||
} | ||
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
Empty file.
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