Utility functions for span attribute management.
This module provides shared utilities for setting span attributes with proper
type handling and JSON serialization. These functions are used by both
decorators and enrichment modules to avoid circular dependencies.