mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-07-31 22:23:12 +08:00
OpenAI instrumentation docs fixes (#2988)
* Add openai docs config and improve readme * up * Add manual sample, add no-content tests * update headers * lint * use grpc endpoint in openai samples, add extra env vars to readme * move distro fix to another PR * nits * Ignore examples for pylint * Update .pylintrc * ignroe lint for example * Fix README docs * Update openai.rst * Update conf.py * Update docs-requirements.txt * docs --------- Co-authored-by: Leighton Chen <lechen@microsoft.com> Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
This commit is contained in:
16
docs/conf.py
16
docs/conf.py
@ -40,6 +40,13 @@ instr_dirs = [
|
||||
if isdir(join(instr, f))
|
||||
]
|
||||
|
||||
instr_genai = "../instrumentation-genai"
|
||||
instr_genai_dirs = [
|
||||
os.path.abspath("/".join(["../instrumentation-genai", f, "src"]))
|
||||
for f in listdir(instr_genai)
|
||||
if isdir(join(instr_genai, f))
|
||||
]
|
||||
|
||||
prop = "../propagator"
|
||||
prop_dirs = [
|
||||
os.path.abspath("/".join([prop, f, "src"]))
|
||||
@ -60,7 +67,14 @@ resource_dirs = [
|
||||
for f in listdir(resource)
|
||||
if isdir(join(resource, f))
|
||||
]
|
||||
sys.path[:0] = exp_dirs + instr_dirs + sdk_ext_dirs + prop_dirs + resource_dirs
|
||||
sys.path[:0] = (
|
||||
exp_dirs
|
||||
+ instr_dirs
|
||||
+ instr_genai_dirs
|
||||
+ sdk_ext_dirs
|
||||
+ prop_dirs
|
||||
+ resource_dirs
|
||||
)
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user