Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
55343e0
Adding OpenTelemetry exporter code
hectorhdzg Oct 26, 2020
3590ac8
Adding OT requires
hectorhdzg Oct 26, 2020
b55b73b
Update ci.yml
rakshith91 Oct 28, 2020
5abed09
Update README.md
rakshith91 Oct 28, 2020
e9eb839
rename samples
rakshith91 Oct 29, 2020
495c119
Merge remote-tracking branch 'upstream/master' into hectorhdzg/otexpo…
hectorhdzg Nov 4, 2020
78a6953
Merge branch 'hectorhdzg/otexporter' of https://github.com/hectorhdzg…
hectorhdzg Nov 4, 2020
22026dc
Addressing comments
hectorhdzg Nov 4, 2020
fc05356
Merge remote-tracking branch 'upstream/master' into hectorhdzg/otexpo…
hectorhdzg Nov 4, 2020
a5e2b89
Updating generated client name
hectorhdzg Nov 4, 2020
e08fa26
changelog fix
rakshith91 Nov 5, 2020
bf1093b
ignore 27
rakshith91 Nov 5, 2020
51489a9
oops
rakshith91 Nov 5, 2020
549f203
3.5
rakshith91 Nov 5, 2020
6fdfb37
Update sdk/monitor/opentelemetry-exporter-azuremonitor/opentelemetry/…
rakshith91 Nov 5, 2020
1ce6bbb
Merge remote-tracking branch 'upstream/master' into hectorhdzg/otexpo…
hectorhdzg Nov 10, 2020
de56d02
Fixing lint
hectorhdzg Nov 10, 2020
1adc16c
Adding check for storage test path
hectorhdzg Nov 10, 2020
871b55e
Adding check in tearDown
hectorhdzg Nov 10, 2020
75e1912
Adding file check in tests
hectorhdzg Nov 10, 2020
11d17cb
Add check in setUp
hectorhdzg Nov 10, 2020
bd971d8
Disable put test
hectorhdzg Nov 11, 2020
c6ab18b
Adding ignore_errors = true for rmtree method
hectorhdzg Nov 11, 2020
611bb43
Merge remote-tracking branch 'upstream/master' into hectorhdzg/otexpo…
hectorhdzg Nov 11, 2020
b8a57cc
Renaming import update
hectorhdzg Nov 11, 2020
faaf083
Merge remote-tracking branch 'upstream/master' into hectorhdzg/otexpo…
hectorhdzg Nov 11, 2020
7c8bbe1
fix set up
rakshith91 Nov 11, 2020
8e2500a
Merge branch 'hectorhdzg/otexporter' of https://github.com/hectorhdzg…
hectorhdzg Nov 11, 2020
3bd0773
Updating swagger readme
hectorhdzg Nov 11, 2020
f4e9524
Adding exist_ok=True to makedirs method
hectorhdzg Nov 11, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Addressing comments
  • Loading branch information
hectorhdzg committed Nov 4, 2020
commit 22026dc0de0d234550a62bcaf356b236c36a0552
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def _is_retryable_code(self, response_code: int) -> bool:
Determine if response is retryable
"""
if response_code in (
206, # Retriable
408, # Timeout
429, # Throttle, too Many Requests
439, # Quota, too Many Requests over extended time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@ def __init__(self, **options):

def export(self, spans: Sequence[Span]) -> SpanExportResult:
envelopes = list(map(self._span_to_envelope, spans))
envelopes = list(
map(
lambda x: x,
self._apply_telemetry_processors(envelopes),
)
)
envelopes = self._apply_telemetry_processors(envelopes)
try:
result = self._transmit(envelopes)
if result == ExportResult.FAILED_RETRYABLE:
Expand All @@ -57,8 +52,6 @@ def export(self, spans: Sequence[Span]) -> SpanExportResult:
logger.exception("Exception occurred while exporting the data.")
return get_trace_export_result(ExportResult.FAILED_NOT_RETRYABLE)

# pylint: disable=too-many-statements
# pylint: disable=too-many-branches
def _span_to_envelope(self, span: Span) -> TelemetryItem:
if not span:
return None
Expand All @@ -70,8 +63,6 @@ def _span_to_envelope(self, span: Span) -> TelemetryItem:
# pylint: disable=too-many-statements
# pylint: disable=too-many-branches
def convert_span_to_envelope(span: Span) -> TelemetryItem:
if not span:
return None
envelope = TelemetryItem(
name="",
instrumentation_key="",
Expand All @@ -80,8 +71,6 @@ def convert_span_to_envelope(span: Span) -> TelemetryItem:
)
envelope.tags["ai.operation.id"] = "{:032x}".format(span.context.trace_id)
parent = span.parent
if isinstance(parent, Span):
parent = parent.context
if parent:
envelope.tags["ai.operation.parentId"] = "{:016x}".format(
parent.span_id
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def _validate_instrumentation_key(self) -> None:
raise ValueError("Instrumentation key cannot be none or empty.")
match = uuid_regex_pattern.match(self.instrumentation_key)
if not match:
raise ValueError("Invalid instrumentation key.")
raise ValueError("Invalid instrumentation key. It should be a valid UUID.")


def parse_connection_string(connection_string) -> typing.Dict:
Expand Down
Loading