@@ -121,8 +121,8 @@ init_result = oneagent.initialize()
121
121
print (' OneAgent SDK initialization result' + repr (init_result))
122
122
if init_result:
123
123
print (' SDK should work (but agent might be inactive).' )
124
- if not init_result :
125
- print (' SDK will definitely not work (i.e. functions will be no-ops). ' )
124
+ else :
125
+ print (' SDK will definitely not work (i.e. functions will be no-ops): ' , init_result )
126
126
```
127
127
128
128
See the API documentation for the [ ` initialize ` function] ( https://dynatrace.github.io/OneAgent-SDK-for-Python/docs/sdkref.html#oneagent.initialize )
@@ -453,7 +453,7 @@ to the respective messaging tracer, which is an outgoing message tracer in the e
453
453
``` python
454
454
msi_handle = sdk.create_messaging_system_info(
455
455
' myMessagingSystem' , ' requestQueue' , MessagingDestinationType.QUEUE ,
456
- ChannelType.TCP_IP , ' 10.11.12.13' )
456
+ oneagent.sdk.Channel(oneagent.sdk. ChannelType.TCP_IP , ' 10.11.12.13' ) )
457
457
458
458
with msi_handle:
459
459
with sdk.trace_outgoing_message(msi_handle) as tracer:
@@ -481,7 +481,7 @@ the received message. Therefore two different tracers are being used:
481
481
``` python
482
482
msi_handle = sdk.create_messaging_system_info(
483
483
' myMessagingSystem' , ' requestQueue' , MessagingDestinationType.QUEUE ,
484
- ChannelType.TCP_IP , ' 10.11.12.13' )
484
+ oneagent.sdk.Channel(oneagent.sdk. ChannelType.TCP_IP , ' 10.11.12.13' ) )
485
485
486
486
with msi_handle:
487
487
# Create the receive tracer for incoming messages.
@@ -508,7 +508,7 @@ IncomingMessageReceiveTracer - just trace processing of the message by using the
508
508
``` python
509
509
msi_handle = sdk.create_messaging_system_info(
510
510
' myMessagingSystem' , ' requestQueue' , MessagingDestinationType.QUEUE ,
511
- ChannelType.TCP_IP , ' 10.11.12.13' )
511
+ oneagent.sdk.Channel(oneagent.sdk. ChannelType.TCP_IP , ' 10.11.12.13' ) )
512
512
513
513
def on_message_received (message ):
514
514
# Get the Dynatrace tag from the message.
0 commit comments