Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "humanloop"

[tool.poetry]
name = "humanloop"
version = "0.8.29"
version = "0.8.29b1"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 1 addition & 1 deletion src/humanloop/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "humanloop",
"X-Fern-SDK-Version": "0.8.29",
"X-Fern-SDK-Version": "0.8.29b1",
}
headers["X-API-KEY"] = self.api_key
return headers
Expand Down
9 changes: 8 additions & 1 deletion src/humanloop/otel/exporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
)
from humanloop.otel.exporter.proto import serialize_span
from humanloop.otel.helpers import (
is_humanloop_span,
is_llm_provider_call,
read_from_opentelemetry_span,
write_to_opentelemetry_span,
)
Expand Down Expand Up @@ -71,9 +73,14 @@ def export(self, spans: Sequence[ReadableSpan]) -> SpanExportResult:
return SpanExportResult.FAILURE

for span in spans:
# only process spans that are relevant to Humanloop
if not is_humanloop_span(span) or not is_llm_provider_call(span):
continue

file_type = span.attributes.get(HUMANLOOP_FILE_TYPE_KEY) # type: ignore [union-attr]
if file_type is None:
raise HumanloopRuntimeError("Internal error: Span does not have type set")
logger.error("Internal error: Humanloop span does not have file type set")
continue

try:
log_args = read_from_opentelemetry_span(
Expand Down
Loading