code: @Trivial
      public static String lookupAppName() {
          String appName;
          try {
              appName = (String) new InitialContext().lookup("java:app/AppName");
          } catch (NamingException e) {
              Tr.error(tc, "OPENTRACING_NO_APPNAME_FOUND_IN_JNDI"); // Should never happen
              appName = DEFAULT_SERVICE_NAME;
          }
          return appName;
      }
docs: <p>Answer the name of the current application name.</p>
  
  <p>For use when retrieving tracers, for which exactly one exists
  per application.</p>
  
  @return The current application name. {@link #DEFAULT_SERVICE_NAME} if
  the name cannot be retrieved by doing a context lookup.