Skip to content

Commit 7e38e29

Browse files
authored
Merge branch 'main' into add-docs-example-sqlcommenter
2 parents bb70290 + 9ed864a commit 7e38e29

File tree

60 files changed

+642
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+642
-229
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ repos:
1313
rev: 0.6.0
1414
hooks:
1515
- 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"]

.rstcheck.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[rstcheck]
2+
ignore_directives = automodule
3+
ignore_roles = scm_web,scm_raw_web

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
1313
## Unreleased
1414

15+
## Version 1.38.0/0.59b0 (2025-10-16)
16+
17+
- Add `rstcheck` to pre-commit to stop introducing invalid RST
18+
([#4755](https://github.com/open-telemetry/opentelemetry-python/pull/4755))
19+
- logs: extend Logger.emit to accept separated keyword arguments
20+
([#4737](https://github.com/open-telemetry/opentelemetry-python/pull/4737))
21+
- logs: add warnings for classes that would be deprecated and renamed in 1.39.0
22+
([#4771](https://github.com/open-telemetry/opentelemetry-python/pull/4771))
23+
1524
## Version 1.37.0/0.58b0 (2025-09-11)
1625

1726
- Add experimental composite samplers

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can run `tox` with the following arguments:
7272
- `tox -e tracecontext` to run integration tests for tracecontext.
7373
- `tox -e precommit` to run all `pre-commit` actions
7474

75-
`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:
75+
`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:
7676

7777
```console
7878
pip install pre-commit -c dev-requirements.txt

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pylint==3.3.4
22
httpretty==1.1.4
3-
pyright==1.1.396
3+
pyright==1.1.405
44
sphinx==7.1.2
55
sphinx-rtd-theme==2.0.0rc4
66
sphinx-autodoc-typehints==1.25.2

docs/conf.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
("py:class", "CarrierT"),
101101
("py:obj", "opentelemetry.propagators.textmap.CarrierT"),
102102
("py:obj", "Union"),
103+
("py:data", "typing.Union"),
103104
(
104105
"py:class",
105106
"opentelemetry.sdk.metrics._internal.instrument._Synchronous",
@@ -115,6 +116,18 @@
115116
"py:class",
116117
"opentelemetry.trace._LinkBase",
117118
),
119+
(
120+
"py:class",
121+
"opentelemetry.proto.collector.trace.v1.trace_service_pb2_grpc.TraceServiceStub",
122+
),
123+
(
124+
"py:class",
125+
"opentelemetry.proto.collector.metrics.v1.metrics_service_pb2_grpc.MetricsServiceStub",
126+
),
127+
(
128+
"py:class",
129+
"opentelemetry.proto.collector.logs.v1.logs_service_pb2_grpc.LogsServiceStub",
130+
),
118131
(
119132
"py:class",
120133
"opentelemetry.exporter.otlp.proto.grpc.exporter.OTLPExporterMixin",

docs/examples/logs/README.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ Start the Collector locally to see data being exported. Write the following file
2323
debug:
2424
verbosity: detailed
2525
26-
processors:
27-
batch:
28-
2926
service:
3027
pipelines:
3128
logs:
3229
receivers: [otlp]
33-
processors: [batch]
3430
exporters: [debug]
3531
traces:
3632
receivers: [otlp]
37-
processors: [batch]
3833
exporters: [debug]
3934
4035
Then start the Docker container:

docs/examples/logs/otel-collector-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ exporters:
88
debug:
99
verbosity: detailed
1010

11-
processors:
12-
batch:
1311

1412
service:
1513
pipelines:
1614
logs:
1715
receivers: [otlp]
18-
processors: [batch]
1916
exporters: [debug]
2017
traces:
2118
receivers: [otlp]
22-
processors: [batch]
2319
exporters: [debug]

docs/examples/metrics/instruments/README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ Start the Collector locally to see data being exported. Write the following file
1717
exporters:
1818
debug:
1919
20-
processors:
21-
batch:
2220
2321
service:
2422
pipelines:

docs/examples/metrics/instruments/otel-collector-config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ receivers:
77
exporters:
88
debug:
99

10-
processors:
11-
batch:
12-
1310
service:
1411
pipelines:
1512
metrics:

0 commit comments

Comments
 (0)