Skip to content

Instantly share code, notes, and snippets.

@paolorechia
Created January 21, 2024 20:05
Show Gist options
  • Save paolorechia/c33b9b647d99b5a84445d9570d32a05a to your computer and use it in GitHub Desktop.
Save paolorechia/c33b9b647d99b5a84445d9570d32a05a to your computer and use it in GitHub Desktop.
Format 2 - Trace event
{
"name": "chroma.add",
"context": {
"trace_id": "0x9b888d928c40aaf9ced2c97e526361f0",
"span_id": "0x4921be9f37ff4abb",
"trace_state": "[]"
},
"kind": "SpanKind.INTERNAL",
"parent_id": null,
"start_time": "2024-01-21T20:04:32.761031Z",
"end_time": "2024-01-21T20:04:33.054961Z",
"status": {
"status_code": "UNSET"
},
"attributes": {
"db.system": "chroma",
"db.operation": "add",
"db.chroma.add.ids_count": 10,
"db.chroma.add.metadatas_count": 10,
"db.chroma.add.documents_count": 10
},
"events": [],
"links": [],
"resource": {
"attributes": {},
"schema_url": ""
}
}
{
"name": "chroma.query.segment._query",
"context": {
"trace_id": "0x1471cb996056657b28534a87aecf921c",
"span_id": "0xdc896e0032e83a67",
"trace_state": "[]"
},
"kind": "SpanKind.INTERNAL",
"parent_id": "0x4f8e9595764a8495",
"start_time": "2024-01-21T20:04:33.061754Z",
"end_time": "2024-01-21T20:04:33.063443Z",
"status": {
"status_code": "UNSET"
},
"attributes": {
"traceloop.workflow.name": "assess_claims",
"db.system": "chroma",
"db.operation": "_query",
"db.chroma.query.segment._query.collection_id": "f3b8ac27-8bb3-4916-8285-b539f34d46ac"
},
"events": [
{
"name": "query_embeddings_0",
"timestamp": "2024-01-21T20:04:33.062141Z",
"attributes": {
"256": 0.022830745205283165,
"257": -0.055063311010599136,
"258": 0.021074647083878517,
"259": -0.02802189625799656,
"260": -0.08820299059152603,
"261": 0.10477113723754883,
"262": -0.054373327642679214,
"263": -0.07502874732017517,
"264": 0.033765245229005814,
"265": 0.004409633576869965,
"266": -0.005116122774779797,
"267": 0.00019034311117138714,
"268": -0.07367024570703506,
"269": -0.06210801750421524,
"270": 0.11904768645763397,
"271": -0.006371106021106243,
"272": 0.08595491200685501,
"273": 0.0013043420622125268,
"274": 0.020757026970386505,
"275": -0.07819365710020065,
"276": -0.002912333235144615,
"277": 0.12783017754554749,
"278": 0.011510351672768593,
"279": 0.027679534628987312,
"280": 0.03214767947793007,
"281": -0.0192237738519907,
"282": 0.02236470766365528,
"283": 0.055370740592479706,
"284": -0.009758103638887405,
"285": 0.009881236590445042,
"286": -0.003825633553788066,
"287": -0.04488564655184746,
"288": 0.006579669192433357,
"289": 0.013026083819568157,
"290": 0.07773709297180176,
"291": 0.018052827566862106,
"292": -0.01155920047312975,
"293": 0.019260182976722717,
"294": 0.050944022834300995,
"295": 0.005912024062126875,
"296": 0.0591074600815773,
"297": -0.015576627105474472,
"298": -0.0225001722574234,
"299": -0.05273643881082535,
"300": 0.03933640941977501,
"301": 0.12446136772632599,
"302": 0.05313074216246605,
"303": 0.04717400670051575,
"304": -0.01844554767012596,
"305": -0.035796795040369034,
"306": 0.012923024594783783,
"307": -0.04271334782242775,
"308": -0.0995861366391182,
"309": -0.07042274624109268,
"310": -0.0335342176258564,
"311": -0.04136381670832634,
"312": -0.019310185685753822,
"313": 0.05267738550901413,
"314": -0.06938282400369644,
"315": 0.05837249010801315,
"316": -0.05333778262138367,
"317": -0.05267792195081711,
"318": -0.037437520921230316,
"319": -1.9511086080115092e-08,
"320": 0.06678164005279541,
"321": 0.012061617337167263,
"322": -0.0015395471127703786,
"323": -0.012131051160395145,
"324": 0.005734710022807121,
"325": -0.027203088626265526,
"326": -0.004066807683557272,
"327": 0.06270375102758408,
"328": 0.0534822940826416,
"329": 0.08690287172794342,
"330": -0.06949903070926666,
"331": 0.07799918949604034,
"332": 0.0023524726275354624,
"333": -0.0038765529170632362,
"334": -0.07984147220849991,
"335": 0.07094661146402359,
"336": -0.0067856693640351295,
"337": 0.04359535500407219,
"338": 0.026922304183244705,
"339": -0.028203092515468597,
"340": -0.05087830871343613,
"341": -0.026181263849139214,
"342": 0.03961761295795441,
"343": 0.009698685258626938,
"344": 0.053713928908109665,
"345": -0.04838588088750839,
"346": 0.05358177423477173,
"347": 0.00019739950948860496,
"348": -0.0142503771930933,
"349": -0.05036390945315361,
"350": 0.04114571586251259,
"351": 0.010588202625513077,
"352": 0.030864866450428963,
"353": -0.022866753861308098,
"354": -0.010937424376606941,
"355": 0.022535979747772217,
"356": 0.06918143481016159,
"357": 0.017251599580049515,
"358": -0.05735079199075699,
"359": -0.01518857292830944,
"360": 0.005762364715337753,
"361": -0.021266311407089233,
"362": 0.0670674666762352,
"363": -0.02433491311967373,
"364": 0.06812980026006699,
"365": -0.08411750942468643,
"366": -0.05480976775288582,
"367": 0.07060239464044571,
"368": 0.03694016858935356,
"369": -0.06977853924036026,
"370": 0.02373524196445942,
"371": -0.07710632681846619,
"372": -0.05118044838309288,
"373": 0.04847894608974457,
"374": -0.027761010453104973,
"375": 0.033303745090961456,
"376": 0.011466726660728455,
"377": -0.020935457199811935,
"378": -0.02688666433095932,
"379": 0.07309101521968842,
"380": 0.011429277248680592,
"381": -0.08532138168811798,
"382": 0.08636607974767685,
"383": 0.023006994277238846
}
},
{
"name": "query_embeddings_1",
"timestamp": "2024-01-21T20:04:33.062483Z",
"attributes": {
"256": -0.08361363410949707,
"257": 0.0173657163977623,
"258": -0.0065254345536231995,
"259": -0.08354713022708893,
"260": -0.07148702442646027,
"261": 0.010745138861238956,
"262": 0.02502068132162094,
"263": 0.006098523736000061,
"264": -0.0006328773451969028,
"265": 0.02398020587861538,
"266": -0.019647063687443733,
"267": -3.521454709698446e-05,
"268": -0.03643631562590599,
"269": 0.022061742842197418,
"270": 0.02262428030371666,
"271": -0.00144103798083961,
"272": 0.08974498510360718,
"273": 0.024534059688448906,
"274": 0.0050915880128741264,
"275": 0.1416327804327011,
"276": -0.010374818928539753,
"277": 0.04492450878024101,
"278": -0.054482728242874146,
"279": 0.008452010340988636,
"280": -0.09856454282999039,
"281": -0.03637154772877693,
"282": -0.10051079839468002,
"283": 0.02346375398337841,
"284": -0.020571677014231682,
"285": 0.039737384766340256,
"286": -0.06141512095928192,
"287": 0.010519620962440968,
"288": 0.05878625810146332,
"289": -0.021615682169795036,
"290": 0.03715363144874573,
"291": -0.011378365568816662,
"292": 0.1193217858672142,
"293": -0.01895204745233059,
"294": 0.04542911797761917,
"295": 0.01599716953933239,
"296": -0.06841281056404114,
"297": -0.08282428979873657,
"298": -0.031396180391311646,
"299": 0.019044606015086174,
"300": -0.035483505576848984,
"301": 0.03230242431163788,
"302": 0.05763285607099533,
"303": 0.021552598103880882,
"304": -0.0062910160049796104,
"305": -0.010575086809694767,
"306": 0.014984766021370888,
"307": -0.04129648208618164,
"308": -0.015765974298119545,
"309": 0.014811760745942593,
"310": 0.025615178048610687,
"311": -0.06813764572143555,
"312": 0.023642713204026222,
"313": 0.03160623833537102,
"314": -0.03358279913663864,
"315": 0.004440522752702236,
"316": -0.07604076713323593,
"317": -0.039625994861125946,
"318": 0.01189411710947752,
"319": -1.9608101808898937e-08,
"320": 0.036993082612752914,
"321": -0.016994556412100792,
"322": 0.008068924769759178,
"323": 7.916535105323419e-05,
"324": 0.05777125805616379,
"325": -0.04333091527223587,
"326": -0.056162089109420776,
"327": 0.08942422270774841,
"328": -0.03584683686494827,
"329": 0.034090571105480194,
"330": 0.008910083211958408,
"331": 0.021643970161676407,
"332": 0.004968786146491766,
"333": -0.1370345503091812,
"334": 0.07086731493473053,
"335": -0.030772650614380836,
"336": 0.02686649188399315,
"337": 0.055530156940221786,
"338": -0.053272794932127,
"339": -0.013733087107539177,
"340": -0.003848286345601082,
"341": 0.010481868870556355,
"342": -0.008413332514464855,
"343": 0.014680527150630951,
"344": -0.06786174327135086,
"345": 0.033528223633766174,
"346": 0.03669697791337967,
"347": 0.0025596609339118004,
"348": 0.012545771896839142,
"349": -0.07903136312961578,
"350": 0.03881822153925896,
"351": -0.05725592374801636,
"352": 0.0056303441524505615,
"353": 0.012266249395906925,
"354": -0.0011331528658047318,
"355": 0.02439257502555847,
"356": 0.029705101624131203,
"357": 0.06452486664056778,
"358": -0.03849698230624199,
"359": 0.002779049798846245,
"360": -0.01887449063360691,
"361": -0.09998549520969391,
"362": 0.04023733735084534,
"363": 0.04035405442118645,
"364": -0.06102633476257324,
"365": -0.03208879753947258,
"366": -0.0637594684958458,
"367": -0.03295812010765076,
"368": 0.02590307965874672,
"369": -0.10422790050506592,
"370": 0.050822723656892776,
"371": 0.009828916750848293,
"372": 0.013360973447561264,
"373": 0.007503757253289223,
"374": -0.0300967525690794,
"375": 0.06682808697223663,
"376": -0.006114277523010969,
"377": -0.038019753992557526,
"378": -0.16469331085681915,
"379": 0.015941983088850975,
"380": 0.05829229950904846,
"381": -0.019892990589141846,
"382": -0.05513082817196846,
"383": 0.046594880521297455
}
}
],
"links": [],
"resource": {
"attributes": {},
"schema_url": ""
}
}
{
"name": "chroma.query",
"context": {
"trace_id": "0x1471cb996056657b28534a87aecf921c",
"span_id": "0x4f8e9595764a8495",
"trace_state": "[]"
},
"kind": "SpanKind.INTERNAL",
"parent_id": "0x47ee4251c3df7882",
"start_time": "2024-01-21T20:04:33.055645Z",
"end_time": "2024-01-21T20:04:33.063967Z",
"status": {
"status_code": "UNSET"
},
"attributes": {
"traceloop.workflow.name": "assess_claims",
"db.system": "chroma",
"db.operation": "query",
"db.chroma.query.query_texts_count": 2,
"db.chroma.query.n_results": 3,
"db.chroma.query.include": "['documents', 'distances']"
},
"events": [],
"links": [],
"resource": {
"attributes": {},
"schema_url": ""
}
}
{
"name": "assess_claims.workflow",
"context": {
"trace_id": "0x1471cb996056657b28534a87aecf921c",
"span_id": "0x47ee4251c3df7882",
"trace_state": "[]"
},
"kind": "SpanKind.INTERNAL",
"parent_id": null,
"start_time": "2024-01-21T20:04:33.055591Z",
"end_time": "2024-01-21T20:04:33.064056Z",
"status": {
"status_code": "UNSET"
},
"attributes": {
"traceloop.workflow.name": "assess_claims",
"traceloop.span.kind": "workflow",
"traceloop.entity.name": "assess_claims"
},
"events": [],
"links": [],
"resource": {
"attributes": {},
"schema_url": ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment