Skip to content

Commit 8237aa8

Browse files
authored
Merge pull request #266 from Scale3-Labs/development
Add `User-Agent` to langtrace exporter headers
2 parents 3d16bcc + 30260f6 commit 8237aa8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/langtrace_python_sdk/extensions/langtrace_exporter.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ def export(self, spans: typing.Sequence[ReadableSpan]) -> SpanExportResult:
9797
response = requests.post(
9898
url=f"{self.api_host}",
9999
data=json.dumps(data),
100-
headers={"Content-Type": "application/json", "x-api-key": self.api_key},
100+
headers={
101+
"Content-Type": "application/json",
102+
"x-api-key": self.api_key,
103+
"User-Agent": "LangtraceExporter",
104+
},
101105
timeout=20,
102106
)
103107

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "2.2.10"
1+
__version__ = "2.2.11"

0 commit comments

Comments
 (0)