Skip to content

Commit

Permalink
add notes to notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
axiomofjoy committed Jan 17, 2025
1 parent 6487179 commit 2a93dd0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions python/openinference-instrumentation/examples/tracer.ipynb
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Notes:\n",
"\n",
"- imagine `phoenix.otel.register` returns `OpenInferenceTracerProvider`\n",
"- imagine there is an `@agent` decorator that behaves the same as `@chain`\n",
"- imagine decorators can be also be used from a particular tracer with `@tracer.chain`\n",
"- import paths will change\n",
"\n",
"\n",
"Proposed imports:\n",
"\n",
"```python\n",
"from openinference.semconv.trace import (\n",
" get_input_value_and_mime_type,\n",
" get_openinference_span_kind,\n",
" get_output_value_and_mime_type,\n",
" get_tool_attributes,\n",
")\n",
"from openinference.instrumentation import tool, chain, OpenInferenceTracerProvider\n",
"```"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand Down

0 comments on commit 2a93dd0

Please sign in to comment.