We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d00efd commit b4d831dCopy full SHA for b4d831d
docs/examples/auto-instrumentation/client.py
@@ -12,6 +12,7 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import sys
16
17
from requests import get
18
@@ -30,13 +31,15 @@
30
31
BatchSpanProcessor(ConsoleSpanExporter())
32
)
33
34
+param_value = sys.argv[1] if len(sys.argv) > 1 else "testing"
35
+
36
with tracer.start_as_current_span("client"):
37
with tracer.start_as_current_span("client-server"):
38
headers = {}
39
inject(headers)
40
requested = get(
41
"http://localhost:8082/server_request",
- params={"param": "testing"},
42
+ params={"param": param_value},
43
headers=headers,
44
45
0 commit comments