code: def public_dsn(dsn):
      '''Transform a standard Sentry DSN into a public one'''
      m = RE_DSN.match(dsn)
      if not m:
          log.error('Unable to parse Sentry DSN')
      public = '{scheme}://{client_id}@{domain}/{site_id}'.format(
          **m.groupdict())
      return publif public_dsn(dsn):
      '''Transform a standard Sentry DSN into a public one'''
      m = RE_DSN.match(dsn)
      if not m:
          log.error('Unable to parse Sentry DSN')
      public = '{scheme}://{client_id}@{domain}/{site_id}'.format(
          **m.groupdict())
      return public
docs: Transform a standard Sentry DSN into a public one