def METHOD_NAME(self) -> int:
    from opentelemetry import trace
    span = trace.get_current_span()
    if span is None:
        return 0
    return 1 if span.get_span_context().trace_flags.METHOD_NAME else 0