File tree Expand file tree Collapse file tree 14 files changed +35
-23
lines changed
opentelemetry-instrumentation-google-genai/examples
opentelemetry-instrumentation-langchain/examples
opentelemetry-instrumentation-vertexai/examples
instrumentation/opentelemetry-instrumentation-urllib Expand file tree Collapse file tree 14 files changed +35
-23
lines changed Original file line number Diff line number Diff line change @@ -157,8 +157,8 @@ jobs:
157
157
- name : Run tests
158
158
run : tox -e shellcheck
159
159
160
- ruff :
161
- name : ruff
160
+ precommit :
161
+ name : precommit
162
162
runs-on : ubuntu-latest
163
163
timeout-minutes : 30
164
164
steps :
@@ -174,7 +174,7 @@ jobs:
174
174
run : pip install tox-uv
175
175
176
176
- name : Run tests
177
- run : tox -e ruff
177
+ run : tox -e precommit
178
178
179
179
typecheck :
180
180
name : typecheck
Original file line number Diff line number Diff line change 13
13
rev : 0.6.0
14
14
hooks :
15
15
- id : uv-lock
16
+ - repo : https://github.com/rstcheck/rstcheck
17
+ rev : 77490ffa33bfc0928975ae3cf904219903db755d # frozen: v6.2.5
18
+ hooks :
19
+ - id : rstcheck
20
+ additional_dependencies : ['rstcheck[sphinx]']
21
+ args : ["--report-level", "warning"]
Original file line number Diff line number Diff line change
1
+ [rstcheck]
2
+ ignore_directives = automodule
Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
16
### Added
17
17
- ` opentelemetry-instrumentation ` : botocore: Add support for AWS Secrets Manager semantic convention attribute
18
18
([ #3765 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3765 ) )
19
+ - Add ` rstcheck ` to pre-commit to stop introducing invalid RST
20
+ ([ #3777 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3777 ) )
21
+
19
22
20
23
## Version 1.37.0/0.58b0 (2025-09-11)
21
24
Original file line number Diff line number Diff line change @@ -84,8 +84,9 @@ You can run `tox` with the following arguments:
84
84
* ` tox -e lint-some-package ` to run lint checks on ` some-package `
85
85
* ` tox -e generate-workflows ` to run creation of new CI workflows if tox environments have been updated
86
86
* ` tox -e ruff ` to run ruff linter and formatter checks against the entire codebase
87
+ * ` tox -e precommit ` to run all ` pre-commit ` actions
87
88
88
- ` ruff check ` and ` ruff format ` are executed when ` tox -e ruff ` is run. We strongly recommend you to configure [ pre-commit] ( https://pre-commit.com/ ) locally to run ` ruff ` automatically before each commit by installing it as git hooks. You just need to [ install pre-commit] ( https://pre-commit.com/#install ) in your environment:
89
+ ` ruff check ` and ` ruff format ` are executed when ` tox -e ruff ` is run. We strongly recommend you to configure [ pre-commit] ( https://pre-commit.com/ ) locally to run ` ruff ` and ` rstcheck ` automatically before each commit by installing it as git hooks. You just need to [ install pre-commit] ( https://pre-commit.com/#install ) in your environment:
89
90
90
91
``` console
91
92
pip install pre-commit -c dev-requirements.txt
Original file line number Diff line number Diff line change 1
1
OpenTelemetry <REPLACE ME> Instrumentation
2
- ===========================
2
+ ==========================================
3
3
4
4
|pypi |
5
5
@@ -20,5 +20,5 @@ Installation
20
20
References
21
21
----------
22
22
23
- * `OpenTelemetry < REPLACE ME> / Tracing <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/< REPLACE ME>/< REPLACE ME> .html> `_
23
+ * `OpenTelemetry REPLACE ME/ Tracing <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/REPLACE ME/ REPLACE ME.html >`_
24
24
* `OpenTelemetry Project <https://opentelemetry.io/ >`_
Original file line number Diff line number Diff line change 1
1
OpenTelemetry Google GenAI SDK Manual Instrumentation Example
2
- ============================================
2
+ =============================================================
3
3
4
4
This is an example of how to instrument Google GenAI SDK calls when configuring
5
5
OpenTelemetry SDK and Instrumentations manually.
Original file line number Diff line number Diff line change 1
1
OpenTelemetry Google GenAI SDK Manual Instrumentation Example
2
- ============================================
2
+ =============================================================
3
3
4
4
This is an example of how to instrument Google GenAI SDK calls with zero code changes,
5
5
using `opentelemetry-instrument `.
Original file line number Diff line number Diff line change 1
1
OpenTelemetry Langcahin Instrumentation Example
2
- ============================================
2
+ ===============================================
3
3
4
4
This is an example of how to instrument Langchain when configuring OpenTelemetry SDK and instrumentations manually.
5
5
6
- When :code: `main.py <main.py>`_ is run, it exports traces to an OTLP-compatible endpoint.
6
+ When `main.py <main.py >`_ is run, it exports traces to an OTLP-compatible endpoint.
7
7
Traces include details such as the span name and other attributes.
8
8
9
- Note: :code: `.env <.env>`_ file configures additional environment variables:
9
+ Note: `.env <.env >`_ file configures additional environment variables:
10
10
- :code: `OTEL_LOGS_EXPORTER=otlp ` to specify exporter type.
11
11
- :code: `OPENAI_API_KEY ` open AI key for accessing the OpenAI API.
12
12
- :code: `OTEL_EXPORTER_OTLP_ENDPOINT ` to specify the endpoint for exporting traces (default is http://localhost:4317).
13
13
14
14
Setup
15
15
-----
16
16
17
- Minimally, update the :code: `.env <.env>`_ file with your :code:`OPENAI_API_KEY `.
17
+ Minimally, update the `.env <.env >`_ file with your :code: `OPENAI_API_KEY `.
18
18
An OTLP compatible endpoint should be listening for traces http://localhost:4317.
19
19
If not, update :code: `OTEL_EXPORTER_OTLP_ENDPOINT ` as well.
20
20
Original file line number Diff line number Diff line change 1
1
OpenTelemetry Langchain Zero-Code Instrumentation Example
2
- ======================================================
2
+ =========================================================
3
3
4
4
This is an example of how to instrument Langchain with zero code changes,
5
5
using `opentelemetry-instrument `.
6
6
7
- When :code: `main.py <main.py>`_ is run, it exports traces to an OTLP-compatible endpoint.
7
+ When `main.py <main.py >`_ is run, it exports traces to an OTLP-compatible endpoint.
8
8
Traces include details such as the span name and other attributes.
9
9
10
- Note: :code: `.env <.env>`_ file configures additional environment variables:
10
+ Note: `.env <.env >`_ file configures additional environment variables:
11
11
- :code: `OTEL_LOGS_EXPORTER=otlp ` to specify exporter type.
12
12
- :code: `OPENAI_API_KEY ` open AI key for accessing the OpenAI API.
13
13
- :code: `OTEL_EXPORTER_OTLP_ENDPOINT ` to specify the endpoint for exporting traces (default is http://localhost:4317).
14
14
15
15
Setup
16
16
-----
17
17
18
- Minimally, update the :code: `.env <.env>`_ file with your :code:`OPENAI_API_KEY `.
18
+ Minimally, update the `.env <.env >`_ file with your :code: `OPENAI_API_KEY `.
19
19
An OTLP compatible endpoint should be listening for traces http://localhost:4317.
20
20
If not, update :code: `OTEL_EXPORTER_OTLP_ENDPOINT ` as well.
21
21
You can’t perform that action at this time.
0 commit comments