Skip to content

Commit

Permalink
fix(vercel): pass run name if the root run is within a span (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
dqbd authored Oct 29, 2024
2 parents 73ba7a1 + e7e5c85 commit 636231e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "langsmith",
"version": "0.2.2",
"version": "0.2.3",
"description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.",
"packageManager": "[email protected]",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export { RunTree, type RunTreeConfig } from "./run_trees.js";
export { overrideFetchImplementation } from "./singletons/fetch.js";

// Update using yarn bump-version
export const __version__ = "0.2.2";
export const __version__ = "0.2.3";
2 changes: 1 addition & 1 deletion js/src/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ export class AISDKExporter {
let name = rawConfig.name;

// if user provided a custom name, only use it if it's the root
if (span.parentSpanId == null) {
if (this.isRootRun(span)) {
name =
this.getSpanAttributeKey(span, RUN_NAME_METADATA_KEY.output) || name;
}
Expand Down

0 comments on commit 636231e

Please sign in to comment.