Skip to content

Commit 2a4db08

Browse files
ialisaleh0xi4o
authored andcommitted
feat: Add Arize & Phoenix Tracer Integration (FlowiseAI#4046)
Added Arize Phoenix Tracer Co-authored-by: Ilango <ilango.rajagopal@flowiseai.com>
1 parent 496ab93 commit 2a4db08

File tree

13 files changed

+36068
-35455
lines changed

13 files changed

+36068
-35455
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
},
7272
"resolutions": {
7373
"@google/generative-ai": "^0.15.0",
74+
"@grpc/grpc-js": "^1.10.10",
7475
"@langchain/core": "0.3.37",
7576
"@qdrant/openapi-typescript-fetch": "1.2.6",
7677
"openai": "4.82.0",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { INodeParams, INodeCredential } from '../src/Interface'
2+
3+
class ArizeApi implements INodeCredential {
4+
label: string
5+
name: string
6+
version: number
7+
description: string
8+
inputs: INodeParams[]
9+
10+
constructor() {
11+
this.label = 'Arize API'
12+
this.name = 'arizeApi'
13+
this.version = 1.0
14+
this.description =
15+
'Refer to <a target="_blank" href="https://docs.arize.com/arize">official guide</a> on how to get API keys on Arize.'
16+
this.inputs = [
17+
{
18+
label: 'API Key',
19+
name: 'arizeApiKey',
20+
type: 'password',
21+
placeholder: '<ARIZE_API_KEY>'
22+
},
23+
{
24+
label: 'Space ID',
25+
name: 'arizeSpaceId',
26+
type: 'string',
27+
placeholder: '<ARIZE_SPACE_ID>'
28+
},
29+
{
30+
label: 'Endpoint',
31+
name: 'arizeEndpoint',
32+
type: 'string',
33+
default: 'https://otlp.arize.com'
34+
}
35+
]
36+
}
37+
}
38+
39+
module.exports = { credClass: ArizeApi }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { INodeParams, INodeCredential } from '../src/Interface'
2+
3+
class PhoenixApi implements INodeCredential {
4+
label: string
5+
name: string
6+
version: number
7+
description: string
8+
inputs: INodeParams[]
9+
10+
constructor() {
11+
this.label = 'Phoenix API'
12+
this.name = 'phoenixApi'
13+
this.version = 1.0
14+
this.description =
15+
'Refer to <a target="_blank" href="https://docs.arize.com/phoenix">official guide</a> on how to get API keys on Phoenix.'
16+
this.inputs = [
17+
{
18+
label: 'API Key',
19+
name: 'phoenixApiKey',
20+
type: 'password',
21+
placeholder: '<PHOENIX_API_KEY>'
22+
},
23+
{
24+
label: 'Endpoint',
25+
name: 'phoenixEndpoint',
26+
type: 'string',
27+
default: 'https://app.phoenix.arize.com'
28+
}
29+
]
30+
}
31+
}
32+
33+
module.exports = { credClass: PhoenixApi }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { INode, INodeParams } from '../../../src/Interface'
2+
3+
class Arize_Analytic implements INode {
4+
label: string
5+
name: string
6+
version: number
7+
description: string
8+
type: string
9+
icon: string
10+
category: string
11+
baseClasses: string[]
12+
inputs?: INodeParams[]
13+
credential: INodeParams
14+
15+
constructor() {
16+
this.label = 'Arize'
17+
this.name = 'arize'
18+
this.version = 1.0
19+
this.type = 'Arize'
20+
this.icon = 'arize.png'
21+
this.category = 'Analytic'
22+
this.baseClasses = [this.type]
23+
this.inputs = []
24+
this.credential = {
25+
label: 'Connect Credential',
26+
name: 'credential',
27+
type: 'credential',
28+
credentialNames: ['arizeApi']
29+
}
30+
}
31+
}
32+
33+
module.exports = { nodeClass: Arize_Analytic }
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { INode, INodeParams } from '../../../src/Interface'
2+
3+
class Phoenix_Analytic implements INode {
4+
label: string
5+
name: string
6+
version: number
7+
description: string
8+
type: string
9+
icon: string
10+
category: string
11+
baseClasses: string[]
12+
inputs?: INodeParams[]
13+
credential: INodeParams
14+
15+
constructor() {
16+
this.label = 'Phoenix'
17+
this.name = 'phoenix'
18+
this.version = 1.0
19+
this.type = 'Phoenix'
20+
this.icon = 'phoenix.png'
21+
this.category = 'Analytic'
22+
this.baseClasses = [this.type]
23+
this.inputs = []
24+
this.credential = {
25+
label: 'Connect Credential',
26+
name: 'credential',
27+
type: 'credential',
28+
credentialNames: ['phoenixApi']
29+
}
30+
}
31+
}
32+
33+
module.exports = { nodeClass: Phoenix_Analytic }
Loading

packages/components/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"license": "SEE LICENSE IN LICENSE.md",
2222
"dependencies": {
2323
"@apidevtools/json-schema-ref-parser": "^11.7.0",
24+
"@arizeai/openinference-instrumentation-langchain": "^2.0.0",
2425
"@aws-sdk/client-bedrock-runtime": "3.422.0",
2526
"@aws-sdk/client-dynamodb": "^3.360.0",
2627
"@aws-sdk/client-s3": "^3.427.0",

0 commit comments

Comments
 (0)