MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / encode

Method encode

app/api/agentops/api/encoders/spans.py:8–10  ·  view source on GitHub ↗

Encode span attributes to binary format.

(attributes: Dict[str, Any])

Source from the content-addressed store, hash-verified

6class SpanAttributeEncoder:
7 @staticmethod
8 def encode(attributes: Dict[str, Any]) -> bytes:
9 """Encode span attributes to binary format."""
10 return pickle.dumps(attributes)
11
12 @staticmethod
13 def decode(binary_data: bytes) -> Dict[str, Any]:

Callers 15

buildMethod · 0.80
_get_cache_argsMethod · 0.80
_encodeFunction · 0.80
_decode_bytesFunction · 0.80
_encode_session_cookieFunction · 0.80
generate_jwtFunction · 0.80
generate_dev_tokenFunction · 0.80
generate_jwtFunction · 0.80
v2_update_logsFunction · 0.80
_make_keyMethod · 0.80
_make_keyMethod · 0.80

Calls

no outgoing calls

Tested by 9

valid_jwtFunction · 0.64
expired_jwtFunction · 0.64
test_verify_jwt_validMethod · 0.64
jwt_tokenFunction · 0.64