monocle2ai / monocle

Monocle is a framework for tracing GenAI app code. This repo contains implementation of Monocle for GenAI apps written in Python.
http://monocle2ai.org
Apache License 2.0
11 stars 5 forks source link

Look into the naming of workflow_context_properties #25

Open kshitiz-okahu opened 1 month ago

kshitiz-okahu commented 1 month ago

The proposal is to decide on naming of attribute for propagation of workflow context across GenAI traces.

kshitiz-okahu commented 1 month ago

after looking at the OpenTelemetry standards for Gen AI, something like the following should work gen_ai.context_propogation

Context propagation is a concept(https://opentelemetry.io/docs/concepts/context-propagation/) in OpenTelemetry so the part context_propogation is added. The prefix gen_ai is the experimental prefix today in OpenTelemetry used for Gen AI request and responses.

kshitiz-okahu commented 1 month ago

The consensus is that the naming should not include any genAI references.

I am in favour of naming these fields as follows

context.session_id

oi-raanne commented 1 month ago

'invocation' would be better than 'context', as 'context' is first class object in open telemetry