Skip to content

Commit 2ed0d94

Browse files
authored
Merge branch 'main' into headers
2 parents 03b7f9e + b513d1f commit 2ed0d94

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

.github/workflows/backport.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
env:
2929
NUMBER: ${{ github.event.inputs.number }}
3030
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
31-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
31+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
3232
run: |
3333
commit=$(gh pr view $NUMBER --json mergeCommit --jq .mergeCommit.oid)
3434
title=$(gh pr view $NUMBER --json title --jq .title)

.github/workflows/prepare-patch-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
- name: Create pull request
7070
env:
7171
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
72-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
72+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
7373
run: |
7474
message="Prepare release ${STABLE_VERSION}/${UNSTABLE_VERSION}"
7575
branch="opentelemetrybot/prepare-release-${STABLE_VERSION}-${UNSTABLE_VERSION}"

.github/workflows/prepare-release-branch.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
- name: Create pull request against the release branch
9797
env:
9898
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
99-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
99+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
100100
run: |
101101
message="Prepare release ${STABLE_VERSION}/${UNSTABLE_VERSION}"
102102
branch="opentelemetrybot/prepare-release-${STABLE_VERSION}-${UNSTABLE_VERSION}"
@@ -181,7 +181,7 @@ jobs:
181181
- name: Create pull request against main
182182
env:
183183
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
184-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
184+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
185185
run: |
186186
message="Update version to ${STABLE_NEXT_VERSION}/${UNSTABLE_NEXT_VERSION}"
187187
body="Update version to \`${STABLE_NEXT_VERSION}/${UNSTABLE_NEXT_VERSION}\`."

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
- name: Create pull request against main
185185
env:
186186
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
187-
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
187+
GITHUB_TOKEN: ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
188188
run: |
189189
message="Copy change log updates from $GITHUB_REF_NAME"
190190
body="Copy log updates from \`$GITHUB_REF_NAME\`."

instrumentation/opentelemetry-instrumentation-wsgi/tests/test_wsgi_middleware.py

+15
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,21 @@ def test_basic_wsgi_call(self):
484484
response = app(self.environ, self.start_response)
485485
self.validate_response(response, exporter)
486486

487+
def test_no_op_tracer_provider(self):
488+
app = otel_wsgi.OpenTelemetryMiddleware(
489+
simple_wsgi, tracer_provider=trace_api.NoOpTracerProvider()
490+
)
491+
492+
response = app(self.environ, self.start_response)
493+
while True:
494+
try:
495+
value = next(response)
496+
self.assertEqual(value, b"*")
497+
except StopIteration:
498+
break
499+
span_list = self.memory_exporter.get_finished_spans()
500+
self.assertEqual(len(span_list), 0)
501+
487502

488503
class TestWsgiMiddlewareWrappedWithAnotherFramework(WsgiTestBase):
489504
def test_mark_span_internal_in_presence_of_span_from_other_framework(self):

0 commit comments

Comments
 (0)