@@ -142,24 +142,20 @@ def __init__(self):
142142 # Mock the common attributes and tags functions
143143 with patch ("agentops.instrumentation.common.attributes.get_common_attributes" ,
144144 return_value = {InstrumentationAttributes .NAME : "agentops" , InstrumentationAttributes .VERSION : "0.1.2" }):
145- with patch ("agentops.instrumentation.common.attributes.get_tags_from_config" ,
146- return_value = {"tag1" : "value1" , "tag2" : "value2" }):
147- # Get base trace attributes
148- attributes = get_base_trace_attributes (mock_trace )
149-
150- # Verify attributes
151- assert CoreAttributes .TRACE_ID in attributes
152- assert attributes [CoreAttributes .TRACE_ID ] == "test_trace_id"
153- assert WorkflowAttributes .WORKFLOW_NAME in attributes
154- assert attributes [WorkflowAttributes .WORKFLOW_NAME ] == "test_trace_name"
155- assert WorkflowAttributes .WORKFLOW_STEP_TYPE in attributes
156- assert attributes [WorkflowAttributes .WORKFLOW_STEP_TYPE ] == "trace"
157- assert InstrumentationAttributes .NAME in attributes
158- assert attributes [InstrumentationAttributes .NAME ] == "agentops"
159- assert InstrumentationAttributes .VERSION in attributes
160- assert attributes [InstrumentationAttributes .VERSION ] == "0.1.2"
161- assert CoreAttributes .TAGS in attributes
162- assert attributes [CoreAttributes .TAGS ] == {"tag1" : "value1" , "tag2" : "value2" }
145+ # Get base trace attributes
146+ attributes = get_base_trace_attributes (mock_trace )
147+
148+ # Verify attributes
149+ assert CoreAttributes .TRACE_ID in attributes
150+ assert attributes [CoreAttributes .TRACE_ID ] == "test_trace_id"
151+ assert WorkflowAttributes .WORKFLOW_NAME in attributes
152+ assert attributes [WorkflowAttributes .WORKFLOW_NAME ] == "test_trace_name"
153+ assert WorkflowAttributes .WORKFLOW_STEP_TYPE in attributes
154+ assert attributes [WorkflowAttributes .WORKFLOW_STEP_TYPE ] == "trace"
155+ assert InstrumentationAttributes .NAME in attributes
156+ assert attributes [InstrumentationAttributes .NAME ] == "agentops"
157+ assert InstrumentationAttributes .VERSION in attributes
158+ assert attributes [InstrumentationAttributes .VERSION ] == "0.1.2"
163159
164160 def test_get_base_trace_attributes_with_invalid_trace (self ):
165161 """Test getting base trace attributes with an invalid trace (missing trace_id)."""
0 commit comments