-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c6a8462
commit 54488fa
Showing
2 changed files
with
12 additions
and
11 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
tests/unit/static/golden/test_otel_instrument__test_instrument_decorator.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
,record,event_id,record_attributes,record_type,resource_attributes,start_timestamp,timestamp,trace | ||
0,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '', 'status': 'STATUS_CODE_UNSET'}",2432797738845484840,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'record_root', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '0a418857-30df-46ea-ad2b-fabe23d5586c', 'trulens.record_root.app_name': 'default_app', 'trulens.record_root.app_version': 'base', 'trulens.record_root.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_root.record_id': '0a418857-30df-46ea-ad2b-fabe23d5586c'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.047832,2025-01-03 16:24:22.051431,"{'trace_id': '58108881239798836388310224737437935350', 'parent_id': '', 'span_id': '2432797738845484840'}" | ||
1,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '2432797738845484840', 'status': 'STATUS_CODE_UNSET'}",16589007816071986692,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '0a418857-30df-46ea-ad2b-fabe23d5586c'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.047889,2025-01-03 16:24:22.050729,"{'trace_id': '58108881239798836388310224737437935350', 'parent_id': '2432797738845484840', 'span_id': '16589007816071986692'}" | ||
2,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '16589007816071986692', 'status': 'STATUS_CODE_UNSET'}",8072709013542374350,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '0a418857-30df-46ea-ad2b-fabe23d5586c', 'trulens.unknown.nested_attr1': 'value1'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.047913,2025-01-03 16:24:22.050007,"{'trace_id': '58108881239798836388310224737437935350', 'parent_id': '16589007816071986692', 'span_id': '8072709013542374350'}" | ||
3,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '8072709013542374350', 'status': 'STATUS_CODE_UNSET'}",4575055756743485863,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '0a418857-30df-46ea-ad2b-fabe23d5586c', 'trulens.unknown.nested2_ret': 'nested2: nested3', 'trulens.unknown.nested2_args[1]': 'test'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.047933,2025-01-03 16:24:22.049227,"{'trace_id': '58108881239798836388310224737437935350', 'parent_id': '8072709013542374350', 'span_id': '4575055756743485863'}" | ||
4,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '4575055756743485863', 'status': 'STATUS_CODE_UNSET'}",16787720027442065238,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '0a418857-30df-46ea-ad2b-fabe23d5586c', 'trulens.unknown.nested3_ret': 'nested3', 'trulens.special.nested3_ret': 'nested3', 'trulens.unknown.selector_name': 'special', 'trulens.unknown.cows': 'moo', 'trulens.special.cows': 'moo'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.047952,2025-01-03 16:24:22.047990,"{'trace_id': '58108881239798836388310224737437935350', 'parent_id': '4575055756743485863', 'span_id': '16787720027442065238'}" | ||
5,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '', 'status': 'STATUS_CODE_UNSET'}",242567963789507041,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'record_root', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '61f3e0ac-6bb8-4cfd-8c50-173025506f22', 'trulens.record_root.app_name': 'default_app', 'trulens.record_root.app_version': 'base', 'trulens.record_root.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_root.record_id': '61f3e0ac-6bb8-4cfd-8c50-173025506f22'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.052177,2025-01-03 16:24:22.055689,"{'trace_id': '219361885883593679657924986861537632625', 'parent_id': '', 'span_id': '242567963789507041'}" | ||
6,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '242567963789507041', 'status': 'STATUS_CODE_UNSET'}",8489630649231593679,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '61f3e0ac-6bb8-4cfd-8c50-173025506f22'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.052211,2025-01-03 16:24:22.054993,"{'trace_id': '219361885883593679657924986861537632625', 'parent_id': '242567963789507041', 'span_id': '8489630649231593679'}" | ||
7,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '8489630649231593679', 'status': 'STATUS_CODE_UNSET'}",13898377917720400937,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '61f3e0ac-6bb8-4cfd-8c50-173025506f22', 'trulens.unknown.nested_attr1': 'value1'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.052232,2025-01-03 16:24:22.054314,"{'trace_id': '219361885883593679657924986861537632625', 'parent_id': '8489630649231593679', 'span_id': '13898377917720400937'}" | ||
8,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '13898377917720400937', 'status': 'STATUS_CODE_UNSET'}",15183556283066412628,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '61f3e0ac-6bb8-4cfd-8c50-173025506f22', 'trulens.unknown.nested2_ret': 'nested2: ', 'trulens.unknown.nested2_args[1]': 'throw'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.052250,2025-01-03 16:24:22.053510,"{'trace_id': '219361885883593679657924986861537632625', 'parent_id': '13898377917720400937', 'span_id': '15183556283066412628'}" | ||
9,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '15183556283066412628', 'status': 'STATUS_CODE_ERROR'}",8890878408638308382,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '61f3e0ac-6bb8-4cfd-8c50-173025506f22', 'trulens.unknown.nested3_ex': ['nested3 exception'], 'trulens.special.nested3_ex': ['nested3 exception'], 'trulens.unknown.selector_name': 'special', 'trulens.unknown.cows': 'moo', 'trulens.special.cows': 'moo'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-03 16:24:22.052266,2025-01-03 16:24:22.052646,"{'trace_id': '219361885883593679657924986861537632625', 'parent_id': '15183556283066412628', 'span_id': '8890878408638308382'}" | ||
0,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '', 'status': 'STATUS_CODE_UNSET'}",8274007869236969283,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'record_root', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '6903af3d-8243-4749-a376-a431f089220a', 'trulens.record_root.app_name': 'default_app', 'trulens.record_root.app_version': 'base', 'trulens.record_root.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_root.record_id': '6903af3d-8243-4749-a376-a431f089220a'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.885554,2025-01-06 10:40:18.889252,"{'trace_id': '18604411383295453781489508452954775597', 'parent_id': '', 'span_id': '8274007869236969283'}" | ||
1,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '8274007869236969283', 'status': 'STATUS_CODE_UNSET'}",1944926101389968701,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'main', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '6903af3d-8243-4749-a376-a431f089220a', 'trulens.main.main_input': 'test', 'trulens.main.main_output': 'answer: nested: nested2: nested3'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.885607,2025-01-06 10:40:18.888504,"{'trace_id': '18604411383295453781489508452954775597', 'parent_id': '8274007869236969283', 'span_id': '1944926101389968701'}" | ||
2,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '1944926101389968701', 'status': 'STATUS_CODE_UNSET'}",6215697778061058136,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '6903af3d-8243-4749-a376-a431f089220a', 'trulens.SpanType.UNKNOWN.nested_attr1': 'value1'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.885630,2025-01-06 10:40:18.887693,"{'trace_id': '18604411383295453781489508452954775597', 'parent_id': '1944926101389968701', 'span_id': '6215697778061058136'}" | ||
3,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '6215697778061058136', 'status': 'STATUS_CODE_UNSET'}",6461726857177528353,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '6903af3d-8243-4749-a376-a431f089220a', 'trulens.SpanType.UNKNOWN.nested2_ret': 'nested2: nested3', 'trulens.SpanType.UNKNOWN.nested2_args[1]': 'test'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.885648,2025-01-06 10:40:18.886930,"{'trace_id': '18604411383295453781489508452954775597', 'parent_id': '6215697778061058136', 'span_id': '6461726857177528353'}" | ||
4,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '6461726857177528353', 'status': 'STATUS_CODE_UNSET'}",2667682623050896653,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '6903af3d-8243-4749-a376-a431f089220a', 'trulens.SpanType.UNKNOWN.nested3_ret': 'nested3', 'trulens.special.nested3_ret': 'nested3', 'trulens.SpanType.UNKNOWN.selector_name': 'special', 'trulens.SpanType.UNKNOWN.cows': 'moo', 'trulens.special.cows': 'moo'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.885662,2025-01-06 10:40:18.885693,"{'trace_id': '18604411383295453781489508452954775597', 'parent_id': '6461726857177528353', 'span_id': '2667682623050896653'}" | ||
5,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '', 'status': 'STATUS_CODE_UNSET'}",9021324901291040756,"{'name': 'root', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'record_root', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '5e9ffe7d-84a8-4d2d-b64b-e1b8dedbe590', 'trulens.record_root.app_name': 'default_app', 'trulens.record_root.app_version': 'base', 'trulens.record_root.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_root.record_id': '5e9ffe7d-84a8-4d2d-b64b-e1b8dedbe590'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.890050,2025-01-06 10:40:18.893944,"{'trace_id': '145422922586400420051395788653845087701', 'parent_id': '', 'span_id': '9021324901291040756'}" | ||
6,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '9021324901291040756', 'status': 'STATUS_CODE_UNSET'}",16307358727656822503,"{'name': 'respond_to_query', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'main', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '5e9ffe7d-84a8-4d2d-b64b-e1b8dedbe590', 'trulens.main.main_input': 'throw', 'trulens.main.main_output': 'answer: nested: nested2: '}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.890077,2025-01-06 10:40:18.893181,"{'trace_id': '145422922586400420051395788653845087701', 'parent_id': '9021324901291040756', 'span_id': '16307358727656822503'}" | ||
7,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '16307358727656822503', 'status': 'STATUS_CODE_UNSET'}",5975037992271230414,"{'name': 'nested', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '5e9ffe7d-84a8-4d2d-b64b-e1b8dedbe590', 'trulens.SpanType.UNKNOWN.nested_attr1': 'value1'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.890106,2025-01-06 10:40:18.892443,"{'trace_id': '145422922586400420051395788653845087701', 'parent_id': '16307358727656822503', 'span_id': '5975037992271230414'}" | ||
8,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '5975037992271230414', 'status': 'STATUS_CODE_UNSET'}",3080381685031943464,"{'name': 'nested2', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '5e9ffe7d-84a8-4d2d-b64b-e1b8dedbe590', 'trulens.SpanType.UNKNOWN.nested2_ret': 'nested2: ', 'trulens.SpanType.UNKNOWN.nested2_args[1]': 'throw'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.890122,2025-01-06 10:40:18.891684,"{'trace_id': '145422922586400420051395788653845087701', 'parent_id': '5975037992271230414', 'span_id': '3080381685031943464'}" | ||
9,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'parent_span_id': '3080381685031943464', 'status': 'STATUS_CODE_ERROR'}",4018081088393528087,"{'name': 'nested3', 'kind': 'SPAN_KIND_TRULENS', 'trulens.span_type': 'unknown', 'trulens.app_id': 'app_hash_baf7b2cb6402e84fa3b0b3a028d4bf65', 'trulens.record_id': '5e9ffe7d-84a8-4d2d-b64b-e1b8dedbe590', 'trulens.SpanType.UNKNOWN.nested3_ex': ['nested3 exception'], 'trulens.special.nested3_ex': ['nested3 exception'], 'trulens.SpanType.UNKNOWN.selector_name': 'special', 'trulens.SpanType.UNKNOWN.cows': 'moo', 'trulens.special.cows': 'moo'}",EventRecordType.SPAN,"{'telemetry.sdk.language': 'python', 'telemetry.sdk.name': 'opentelemetry', 'telemetry.sdk.version': '1.29.0', 'service.name': 'trulens'}",2025-01-06 10:40:18.890141,2025-01-06 10:40:18.890626,"{'trace_id': '145422922586400420051395788653845087701', 'parent_id': '3080381685031943464', 'span_id': '4018081088393528087'}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters