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

Python: Add OpenTelemetry to Python SK #6914

Merged
merged 41 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
22204aa
loggin
glahaye Jun 23, 2024
1156b46
Merge main
glahaye Jun 23, 2024
e5ed784
Merge branch 'main' into python_telemetry
glahaye Jun 24, 2024
a2c5fd7
Update python/semantic_kernel/connectors/ai/open_ai/services/open_ai_…
glahaye Jun 24, 2024
2848051
Addressed PR issues
glahaye Jun 27, 2024
fe86266
Merge main
glahaye Jun 27, 2024
e9dd311
Merge main
glahaye Jun 27, 2024
4f3783d
Update poetry info after merge
glahaye Jun 27, 2024
e71fab2
Address PR issues
glahaye Jun 27, 2024
6bf6406
Fix lint warning
glahaye Jun 28, 2024
00269b9
Fix false positive security issue
glahaye Jun 28, 2024
1fac03f
completion telemetry now in decorator
glahaye Jul 8, 2024
cc13f52
Use classvar
glahaye Jul 8, 2024
6437b04
Merge main
glahaye Jul 8, 2024
c6aa839
Proper merge of poetry lock
glahaye Jul 8, 2024
8cc7681
Fix precommit qual issues
glahaye Jul 8, 2024
f875eb3
Address PR issues
glahaye Jul 9, 2024
157ff32
Address PR comments + add trace_text_completion
glahaye Jul 10, 2024
7ac6a2d
Merge main
glahaye Jul 10, 2024
1d94e81
Adjust poetry lock
glahaye Jul 10, 2024
386b121
Fix mypy warnings
glahaye Jul 10, 2024
c903017
Sync poetry.lock
glahaye Jul 11, 2024
22b6ba0
Merge main
glahaye Jul 15, 2024
5c0c031
Merge branch 'main' into python_telemetry
glahaye Jul 15, 2024
dd25760
Fix ruff warning after merge
glahaye Jul 15, 2024
d95c8d2
Use kwargs for prompt, chat_history and settings
glahaye Jul 15, 2024
76739cb
Merge branch 'main' into python_telemetry
glahaye Jul 16, 2024
e0a2471
Merge main
glahaye Jul 17, 2024
a04bbd6
Merge branch 'python_telemetry' of https://github.com/glahaye/semanti…
glahaye Jul 17, 2024
17c2c72
Fix poetry.lock after merge from main
glahaye Jul 17, 2024
1f163f1
Add unit tests
glahaye Jul 23, 2024
6710051
Merge main
glahaye Jul 23, 2024
d73ead7
Adapt poetry.lock after merge
glahaye Jul 23, 2024
066e370
Merge branch 'main' into python_telemetry
glahaye Jul 24, 2024
6ae2ef6
Address PR comments + enable async unit tests
glahaye Jul 24, 2024
3e8d5e9
Merge branch 'python_telemetry' of https://github.com/glahaye/semanti…
glahaye Jul 24, 2024
c001002
Fix unit tests
glahaye Jul 24, 2024
1a73614
Overriding .env file in unit tests
glahaye Jul 24, 2024
dabe4c2
Fix unit tests
glahaye Jul 25, 2024
32e03bb
Merge main
glahaye Jul 25, 2024
f2b0f5d
Fix poetry.lock after merge
glahaye Jul 25, 2024
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
200 changes: 153 additions & 47 deletions python/poetry.lock

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

5 changes: 5 additions & 0 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ grpcio = [
openai = ">=1.0"
regex = ">=2023.6.3,<2025.0.0"
openapi_core = ">=0.18,<0.20"
opentelemetry-api = "^1.25.0"
opentelemetry-sdk = "^1.25.0"
opentelemetry-distro = "^0.46b0"
opentelemetry-exporter-otlp = "^1.25.0"
prance = "^23.6.21.0"
pydantic = "^2"
pydantic-settings = "^2.2.1"
Expand All @@ -32,6 +36,7 @@ defusedxml = "^0.7.1"
pybars4 = "^0.9.13"
jinja2 = "^3.1.3"
nest-asyncio = "^1.6.0"
azure-monitor-opentelemetry-exporter = {version = "^1.0.0b27", allow-prereleases = true}

# Optional dependencies
ipykernel = { version = "^6.21.1", optional = true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
" results = await oai_text_service.get_text_contents(prompt=prompt, settings=oai_text_prompt_execution_settings)\n",
"\n",
" for i, result in enumerate(results):\n",
" print(f\"Result {i+1}: {result}\")"
" print(f\"Result {i + 1}: {result}\")"
]
},
{
Expand All @@ -276,7 +276,7 @@
" results = await aoai_text_service.get_text_contents(prompt=prompt, settings=oai_text_prompt_execution_settings)\n",
"\n",
" for i, result in enumerate(results):\n",
" print(f\"Result {i+1}: {result}\")"
" print(f\"Result {i + 1}: {result}\")"
]
},
{
Expand Down
Loading
Loading