@classmethod
def dump_trace(cls, output, config_name, indent_count=0):
    """Dump trace configuration to output stream.

        :param output: output stream to write to
        :param config_name: name of configuration class instance to be referenced when initializing trace
        :param indent_count: indentation that should be used to indent source
        """
    indent = indent_count * 4 * ' '
    for _ in cls._trace_logging:
        output.write('%s%s.trace_by_logging()\n' % (indent, config_name))
    for entry in cls._trace_storage:
        output.write('%s%s.trace_by_func(functools.partial(%s.%s, %s))\n' %
            (indent, config_name, entry[0].class_name, entry[1], entry[0].
            var_name))
    for entry in cls._trace_function:
        output.write('%sfrom %s import %s\n' % (indent, entry[0], entry[1]))
        output.write('%s%s.trace_by_func(%s)\n' % (indent, config_name,
            entry[1]))
    for entry in cls._trace_sentry:
        output.write('%s%s.trace_by_sentry(dsn=%s)\n' % (indent,
            config_name, "'%s'" % entry if entry is not True else None))
