class ErrorParser extends Tag<Throwable> {

  protected final void tag(Object span, String key, String message) {
    if (span instanceof SpanCustomizer) {
      ((SpanCustomizer) span).tag(key, message);
    } else if (span instanceof MutableSpan) {
      ((MutableSpan) span).tag(key, message);
    } else if (span instanceof KeyValueAdapter) {
      KeyValueAdapter keyValueAdapter = (KeyValueAdapter) span;
      keyValueAdapter.key = key;
      keyValueAdapter.value = message;
    }
  }

  public  ErrorParser();

}