File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ class LlmEvent {
4141 this . trace_id = transaction ?. traceId
4242 this . vendor = vendor
4343 this . metadata = agent
44- this . appName = agent . config . applications ( ) [ 0 ]
44+ // TODO: Does not appear in AIM spec, but was a
45+ // requirement for LangChain instrumentation back in 2024?
46+ // this.appName = agent.config.applications()[0]
4547
4648 // Omit `error` property if no error occurred
4749 if ( error === true ) {
Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ class LangChainLlmChatCompletionMessage extends LlmChatCompletionMessage {
4242 completionId,
4343 isResponse } )
4444
45+ // TODO: Does not appear in AIM spec, but was a
46+ // requirement for LangChain instrumentation back in 2024?
47+ this . appName = agent . config . applications ( ) [ 0 ]
4548 this . langchainMeta = metadata
4649 this . tags = Array . isArray ( tags ) ? tags . join ( ',' ) : tags
4750 }
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ class LangChainLlmChatCompletionSummary extends LlmChatCompletionSummary {
2121 error,
2222 numMsgs } )
2323
24+ // TODO: Does not appear in AIM spec, but was a
25+ // requirement for LangChain instrumentation back in 2024?
26+ this . appName = agent . config . applications ( ) [ 0 ]
2427 this . langchainMeta = metadata
2528 this . tags = Array . isArray ( tags ) ? tags . join ( ',' ) : tags
2629 }
You can’t perform that action at this time.
0 commit comments