Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rohit/s3 en 2314 update db attributes #48

Merged
merged 2 commits into from
May 23, 2024
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
18 changes: 9 additions & 9 deletions schemas/database_span_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
"server.address": {
"type": "string"
},
"db.query": {
"type": "string"
},
"db.response": {
"type": "string"
},
"db.operation": {
"type": "string"
},
Expand All @@ -37,20 +43,13 @@
"db.collection.name": {
"type": "string"
},
"db.pinecone.top_k": {
"db.top_k": {
"type": "number",
"format": "float"
},
"db.chromadb.embedding_model": {
"db.embedding_model": {
"type": "string"
},
"user.id": {
"type": "string"
},
"user.feedback.rating": {
"type": "integer",
"format": "int32"
},
"langtrace.testId": {
"type": "string"
}
Expand All @@ -59,6 +58,7 @@
"langtrace.service.name",
"langtrace.service.type",
"langtrace.sdk.name",
"db.query",
"langtrace.version",
"db.system"
]
Expand Down
7 changes: 0 additions & 7 deletions schemas/framework_span_attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@
"llamaindex.outputs": {
"type": "string"
},
"user.id": {
"type": "string"
},
"user.feedback.rating": {
"type": "integer",
"format": "int32"
},
"langtrace.testId": {
"type": "string"
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='trace-attributes', # Choose a unique name for PyPI
version='3.0.8',
version='4.0.0',
author='Karthik Kalyanaraman',
author_email='[email protected]',
description='LangTrace - Trace Attributes',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: database_span_attributes.json
# timestamp: 2024-04-10T15:00:03+00:00
# timestamp: 2024-05-23T16:57:17+00:00

from __future__ import annotations

Expand All @@ -21,15 +21,13 @@ class Config:
langtrace_sdk_name: str = Field(..., alias='langtrace.sdk.name')
langtrace_version: str = Field(..., alias='langtrace.version')
server_address: Optional[str] = Field(None, alias='server.address')
db_query: str = Field(..., alias='db.query')
db_response: Optional[str] = Field(None, alias='db.response')
db_operation: Optional[str] = Field(None, alias='db.operation')
db_system: str = Field(..., alias='db.system')
db_namespace: Optional[str] = Field(None, alias='db.namespace')
db_index: Optional[str] = Field(None, alias='db.index')
db_collection_name: Optional[str] = Field(None, alias='db.collection.name')
db_pinecone_top_k: Optional[float] = Field(None, alias='db.pinecone.top_k')
db_chromadb_embedding_model: Optional[str] = Field(
None, alias='db.chromadb.embedding_model'
)
user_id: Optional[str] = Field(None, alias='user.id')
user_feedback_rating: Optional[int] = Field(None, alias='user.feedback.rating')
db_top_k: Optional[float] = Field(None, alias='db.top_k')
db_embedding_model: Optional[str] = Field(None, alias='db.embedding_model')
langtrace_testId: Optional[str] = Field(None, alias='langtrace.testId')
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# generated by datamodel-codegen:
# filename: framework_span_attributes.json
# timestamp: 2024-04-28T02:15:38+00:00
# timestamp: 2024-05-23T16:57:21+00:00

from __future__ import annotations

Expand Down Expand Up @@ -31,6 +31,4 @@ class Config:
llamaindex_task_name: Optional[str] = Field(None, alias='llamaindex.task.name')
llamaindex_inputs: Optional[str] = Field(None, alias='llamaindex.inputs')
llamaindex_outputs: Optional[str] = Field(None, alias='llamaindex.outputs')
user_id: Optional[str] = Field(None, alias='user.id')
user_feedback_rating: Optional[int] = Field(None, alias='user.feedback.rating')
langtrace_testId: Optional[str] = Field(None, alias='langtrace.testId')
8 changes: 4 additions & 4 deletions src/typescript/models/database_span_attributes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export interface DatabaseSpanAttributes {
"langtrace.sdk.name": string;
"langtrace.version": string;
"server.address"?: string;
"db.query": string;
"db.response"?: string;
"db.operation"?: string;
"db.system": string;
"db.namespace"?: string;
"db.index"?: string;
"db.collection.name"?: string;
"db.pinecone.top_k"?: number;
"db.chromadb.embedding_model"?: string;
"user.id"?: string;
"user.feedback.rating"?: number;
"db.top_k"?: number;
"db.embedding_model"?: string;
"langtrace.testId"?: string;
}
2 changes: 0 additions & 2 deletions src/typescript/models/framework_span_attributes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ export interface FrameworkSpanAttributes {
"llamaindex.task.name"?: string;
"llamaindex.inputs"?: string;
"llamaindex.outputs"?: string;
"user.id"?: string;
"user.feedback.rating"?: number;
"langtrace.testId"?: string;
}
4 changes: 2 additions & 2 deletions src/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@langtrase/trace-attributes",
"version": "3.0.9",
"version": "4.0.0",
"description": "LangTrace - Trace Attributes",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Loading