<!-- NOTE: THIS TEXT IS AUTOGENERATED. DO NOT EDIT BY HAND. -->
<!-- see templates/registry/markdown/snippet.md.j2 -->
<!-- prettier-ignore-start -->
<!-- markdownlint-capture -->
<!-- markdownlint-disable -->
{%- import 'attribute_table.j2' as at -%}
{%- import 'metric_table.j2' as mt -%}
{%- import 'event_macros.j2' as event -%}
{%- import 'resource_macros.j2' as resource %}

{% macro generate_event(group) -%}
{{ event.header(group) }}{{ generate_attributes(group) }}{{ event.body(group.body) }}{% endmacro -%}
{%- macro generate_resource(group) -%}
{{ resource.header(group) }}{{ generate_attributes(group) }}{% endmacro -%}
{%- macro generate_metric(group) -%}
{{ mt.generate(group) }}
{{ generate_attributes(group) }}{% endmacro -%}
{%- macro generate_attributes(group) -%}
{{ at.generate(group.attributes, tag_filter, attribute_registry_base_url, group.lineage.attributes) }}{% endmacro -%}

{% if group.type == "event" -%}
{{ generate_event(group) -}}
{%- elif group.type == "resource" -%}
{{ generate_resource(group) }}
{%- elif group.type == "metric" -%}
{{ generate_metric(group) }}
{%- else -%}
{{ generate_attributes(group) -}}
{% endif -%}
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- END AUTOGENERATED TEXT -->
