Skip to content

Commit

Permalink
7 day retention, include host info
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanFauble committed Nov 6, 2023
1 parent f4bd8ac commit 3d44bee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ jobs:
with:
name: opentelemetry_traces_${{ matrix.os }}
path: tests/integration/otel
retention-days: 7

# on a GitHub release, build the pip package and upload it as a GitHub release asset
package:
Expand Down
11 changes: 9 additions & 2 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import platform
import uuid
import os
import sys
Expand All @@ -14,7 +15,7 @@
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter
from opentelemetry.sdk.resources import SERVICE_NAME, Resource
from opentelemetry.sdk.resources import SERVICE_NAME, OS_TYPE, OS_DESCRIPTION, Resource
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk.trace.sampling import ALWAYS_OFF

Expand Down Expand Up @@ -131,7 +132,13 @@ def setup_otel():
if provider_type:
trace.set_tracer_provider(
TracerProvider(
resource=Resource(attributes={SERVICE_NAME: "syn_int_tests"}),
resource=Resource(
attributes={
SERVICE_NAME: "syn_int_tests",
OS_DESCRIPTION: platform.release(),
OS_TYPE: platform.system(),
}
),
)
)
if provider_type == "otlp":
Expand Down

0 comments on commit 3d44bee

Please sign in to comment.