Try it free

Smartscape - GenAI

  • Latest Dynatrace
  • Reference

This section contains all entity types that are considered Generative AI entities.

Query

Get an overview of all GenAI entities.

smartscapeNodes "GENAI_*"

Count all GenAI entities, grouped by entity type.

smartscapeNodes "GENAI_*"
| summarize count(), by: {type}

Get an overview of all GenAI relationships, grouped by source type, relationship type, and target type.

smartscapeEdges "*"
| filter startsWith(source_type, "GENAI")
| summarize count(), by: {source_type, type, target_type}

GenAI entity fields

Fields shared across all GenAI entities.

AttributeTypeDescriptionExamples
gen_ai.provider.namestringexperimental
Display name: Provider name
Name of GenAI product being used.
aws_bedrock; openai

gen_ai.provider.name has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

ValueDescriptionDisplay name
anthropicAnthropicAnthropic
aws.bedrockAmazon BedrockAmazon Bedrock
cohereCohereCohere
deepseekDeepSeekDeepSeek
gcp.geminiGoogle GeminiGoogle Gemini
gcp.vertex_aiGoogle Vertex AIGoogle Vertex AI
groqGroqGroq
ibm.watsonx.aiIBM Watsonx AIIBM Watsonx AI
microsoft.foundryMicrosoft FoundryMicrosoft Foundry
mistralMistralMistral
ollamaOllamaOllama
openaiOpenAIOpenAI
perplexityPerplexityPerplexity
x_aixAIxAI

GenAI agent

Smartscape node name: gen_ai.agent.name

Smartscape node type: GENAI_AGENT

This entity represents an agent, an autonomous component that orchestrates LLM calls and tool use.

Required span attributes (all three must be present for the entity to be created):

  • gen_ai.agent.name: identifies the agent (for example, pricing)
  • gen_ai.provider.name: the LLM provider called by the agent (for example, openai); also required for GENAI_PROVIDER entity creation and the calls topology edge
  • dt.smartscape.service: the service the agent runs in; derived from service.name via UNIFIED_SERVICE_DETECTION

The model attributes (gen_ai.request.model, gen_ai.response.model) are not required for the agent entity itself, but are needed for the GENAI_MODEL entity to be created and for the uses edge to appear in the topology.

Example span attributes:

gen_ai.agent.name = pricing
gen_ai.provider.name = openai
gen_ai.request.model = gpt-4o

Query

Fetch all Smartscape nodes from the smartscape.nodes table and filter for the entity type "GENAI_AGENT".

smartscapeNodes GENAI_AGENT

Count all agent relationships, grouped by relationship type (uses, calls, is_part_of).

smartscapeEdges "*"
| filter source_type == "GENAI_AGENT"
| summarize count(), by: {type}

Find all models used by a specific agent, showing both agent and model name.

smartscapeNodes GENAI_AGENT
| filter startsWith(name, "FAQ")
| traverse {uses}, {GENAI_MODEL}
| fieldsAdd gen_ai.agent.name = getNodeName(dt.traverse.history[0][id])
| fieldsKeep id, lifetime, name, gen_ai.agent.name

Find all providers called by any agent, showing both agent and provider name.

smartscapeNodes GENAI_AGENT
| traverse {calls}, {GENAI_PROVIDER}
| fieldsAdd gen_ai.agent.name = getNodeName(dt.traverse.history[0][id])
| fieldsKeep id, lifetime, name, gen_ai.agent.name

Fetch spans from agents and enrich each span with the corresponding agent entity metadata.

fetch spans
| filter isNotNull(gen_ai.agent.name)
| fieldsAdd agent_entity = lookup([
smartscapeNodes GENAI_AGENT
| fields id, name, gen_ai.provider.name
], sourceField: gen_ai.agent.name, lookupField: name)

Base entity fields

The following base fields are used for all entities.

AttributeTypeDescriptionExamples
idsmartscapeIdstable
Display name: ID
A Smartscape ID consists of two components: an UPPER_CASE entity type and a random 16-character hexadecimal unique identifier, separated by a dash. Use Smartscape conversion functions when working with strings that represent Smartscape IDs.
<type>-017198AD253CBD63
id_classicstringdeprecated
Display name: Classic ID
The entity ID that was used in the classic entity store. This ID is present in old monitoring data. Not all entities have this ID, and it is not generated for new entities. Use the id field instead, which is the Smartscape ID.
<type>-017198AD253CBD63
namestringstable
Display name: Name
The entity name.
localhost; easyTravel; product-catalog
typestringstable
Display name: Type
The entity type. UPPER_SNAKE_CASE string that represents the type of the entity.
Tags: permission
TYPE_A
tagsrecordstable
Display name: Tags
A consolidated record that aggregates all tag values originating from different contexts. Each nested field within tags represents a specific key (for example, release or name). The value of each nested field is the tag value from one or multiple contexts. Tags for specific context can be queried via tags:context field. Note that rule-based tags do not exist in the new model.
tags[tag_key-1] = [context_A_tag_val-1, context_B_tag_val-1]; tags[tag_key-2] = context_C_tag_val-1; tags:context_A[tag_key-1] = context_A_tag_val-1
lifetimetimeframestable
Display name: Lifetime
The lifetime of the entity. This is a record with two nested fields: start and end, which represent the time when the entity was first and last observed, respectively. Each time an entity is updated, the end time is updated to the current time.
{ start: 2022-07-06T13:36:00.808Z, end: 2024-04-11T06:56:01.204Z }
referencesrecordstable
Display name: References
Provides access to static edges pointing to other entities. In this record each nested field represents a relationship type and target type, and the value is an array of target Smartscape IDs. This field is hidden by default but can be added using the fieldsAdd command.
{ references[runs_on.host] : [HOST-C251A1173C2B4B39,HOST-0E9038C7C4409D69], references[runs_on.container] : [CONTAINER-68A08967EF4F675B] }
dt.security_contextstring[]resource stable
Display name: DT security context
The security contexts associated with the entity. For Smartscape entities, this field is always an array.
Tags: permission
[]

GenAI agent entity fields

Fields specific to agent entities.

AttributeTypeDescriptionExamples
gen_ai.agent.namestringexperimental
Display name: Agent name
Human-readable name of the GenAI agent provided by the application.
Math Tutor; Fiction Writer
gen_ai.provider.namestringexperimental
Display name: Provider name
Name of GenAI product being used.
aws_bedrock; openai

gen_ai.provider.name has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

ValueDescriptionDisplay name
anthropicAnthropicAnthropic
aws.bedrockAmazon BedrockAmazon Bedrock
cohereCohereCohere
deepseekDeepSeekDeepSeek
gcp.geminiGoogle GeminiGoogle Gemini
gcp.vertex_aiGoogle Vertex AIGoogle Vertex AI
groqGroqGroq
ibm.watsonx.aiIBM Watsonx AIIBM Watsonx AI
microsoft.foundryMicrosoft FoundryMicrosoft Foundry
mistralMistralMistral
ollamaOllamaOllama
openaiOpenAIOpenAI
perplexityPerplexityPerplexity
x_aixAIxAI

GenAI agent relationships

Relationships of an agent entity.

TypeTarget typeKindDescription
usesGENAI_MODELdynamicstable
Similar to is_attached_to but in the opposite direction. Examples: EC2 Instance uses DHCP options, Auto Scaling Group uses EC2 Launch Template
callsGENAI_PROVIDERdynamicstable
Defines a "horizontal" relationship between two entities that "call" each other. The "calls" relation does not imply a parent/child or other strong structural relation but rather a dynamic communication association. Examples: Typical examples include services calling other services, but also services calling databases, queue brokers, or other infrastructure entities.
is_part_ofSERVICEdynamicstable
Defines if the instance is part of a cluster, similar to a composition in UML. The source (child) cannot exist without the destination (parent).

GenAI model

Smartscape node name: gen_ai.response.model

Smartscape node type: GENAI_MODEL

This entity represents a GenAI model. The entity is built based on the value of gen_ai.request.model and gen_ai.response.model, each only when the respective attribute is present. There are no precedence rules between the two variants; they are independent.

Query

Fetch all Smartscape nodes from the smartscape.nodes table and filter for the entity type "GENAI_MODEL".

smartscapeNodes GENAI_MODEL

Find all agents that use a specific model, showing both model and agent name.

smartscapeNodes GENAI_MODEL
| filter startsWith(name, "gpt")
| traverse {uses}, {GENAI_AGENT}, direction:backward
| fieldsAdd gen_ai.model.name = getNodeName(dt.traverse.history[0][id])
| fieldsKeep id, lifetime, gen_ai.provider.name, gen_ai.model.name

Find all providers that serve a specific model, showing both model and provider name.

smartscapeNodes GENAI_MODEL
| filter startsWith(name, "gpt")
| traverse {belongs_to}, {GENAI_PROVIDER}, direction:backward
| fieldsAdd gen_ai.model.name = getNodeName(dt.traverse.history[0][id])
| fieldsKeep id, lifetime, name, gen_ai.model.name

Base entity fields

The following base fields are used for all entities.

AttributeTypeDescriptionExamples
idsmartscapeIdstable
Display name: ID
A Smartscape ID consists of two components: an UPPER_CASE entity type and a random 16-character hexadecimal unique identifier, separated by a dash. Use Smartscape conversion functions when working with strings that represent Smartscape IDs.
<type>-017198AD253CBD63
id_classicstringdeprecated
Display name: Classic ID
The entity ID that was used in the classic entity store. This ID is present in old monitoring data. Not all entities have this ID, and it is not generated for new entities. Use the id field instead, which is the Smartscape ID.
<type>-017198AD253CBD63
namestringstable
Display name: Name
The entity name.
localhost; easyTravel; product-catalog
typestringstable
Display name: Type
The entity type. UPPER_SNAKE_CASE string that represents the type of the entity.
Tags: permission
TYPE_A
tagsrecordstable
Display name: Tags
A consolidated record that aggregates all tag values originating from different contexts. Each nested field within tags represents a specific key (for example, release or name). The value of each nested field is the tag value from one or multiple contexts. Tags for specific context can be queried via tags:context field. Note that rule-based tags do not exist in the new model.
tags[tag_key-1] = [context_A_tag_val-1, context_B_tag_val-1]; tags[tag_key-2] = context_C_tag_val-1; tags:context_A[tag_key-1] = context_A_tag_val-1
lifetimetimeframestable
Display name: Lifetime
The lifetime of the entity. This is a record with two nested fields: start and end, which represent the time when the entity was first and last observed, respectively. Each time an entity is updated, the end time is updated to the current time.
{ start: 2022-07-06T13:36:00.808Z, end: 2024-04-11T06:56:01.204Z }
referencesrecordstable
Display name: References
Provides access to static edges pointing to other entities. In this record each nested field represents a relationship type and target type, and the value is an array of target Smartscape IDs. This field is hidden by default but can be added using the fieldsAdd command.
{ references[runs_on.host] : [HOST-C251A1173C2B4B39,HOST-0E9038C7C4409D69], references[runs_on.container] : [CONTAINER-68A08967EF4F675B] }
dt.security_contextstring[]resource stable
Display name: DT security context
The security contexts associated with the entity. For Smartscape entities, this field is always an array.
Tags: permission
[]

GenAI model entity fields

Fields specific to model entities.

AttributeTypeDescriptionExamples
gen_ai.request.modelstringexperimental
Display name: Request model
Model chosen to handle the request.
amazon.nova-micro-v1:0; anthropic.claude-3-7-sonnet-20250219-v1:0
gen_ai.response.modelstringexperimental
Display name: Response model
Model that handled the request.
amazon.nova-micro-v1:0; anthropic.claude-3-7-sonnet-20250219-v1:0
gen_ai.provider.namestringexperimental
Display name: Provider name
Name of GenAI product being used.
aws_bedrock; openai

gen_ai.provider.name has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

ValueDescriptionDisplay name
anthropicAnthropicAnthropic
aws.bedrockAmazon BedrockAmazon Bedrock
cohereCohereCohere
deepseekDeepSeekDeepSeek
gcp.geminiGoogle GeminiGoogle Gemini
gcp.vertex_aiGoogle Vertex AIGoogle Vertex AI
groqGroqGroq
ibm.watsonx.aiIBM Watsonx AIIBM Watsonx AI
microsoft.foundryMicrosoft FoundryMicrosoft Foundry
mistralMistralMistral
ollamaOllamaOllama
openaiOpenAIOpenAI
perplexityPerplexityPerplexity
x_aixAIxAI

GenAI provider

Smartscape node name: gen_ai.provider.name

Smartscape node type: GENAI_PROVIDER

This entity represents a GenAI provider.

Query

Fetch all Smartscape nodes from the smartscape.nodes table and filter for the entity type "GENAI_PROVIDER".

smartscapeNodes GENAI_PROVIDER

Find all agents calling a specific provider, showing agent name and provider.

smartscapeNodes GENAI_PROVIDER
| filter name == "openai"
| traverse {calls}, {GENAI_AGENT}, direction:backward
| fieldsKeep id, lifetime, name, gen_ai.provider.name

List all provider–model pairs, showing which models each provider belongs to.

smartscapeEdges belongs_to
| filter source_type == "GENAI_PROVIDER"
| fieldsAdd provider_name = getNodeName(source_id), model_name = getNodeName(target_id)

Base entity fields

The following base fields are used for all entities.

AttributeTypeDescriptionExamples
idsmartscapeIdstable
Display name: ID
A Smartscape ID consists of two components: an UPPER_CASE entity type and a random 16-character hexadecimal unique identifier, separated by a dash. Use Smartscape conversion functions when working with strings that represent Smartscape IDs.
<type>-017198AD253CBD63
id_classicstringdeprecated
Display name: Classic ID
The entity ID that was used in the classic entity store. This ID is present in old monitoring data. Not all entities have this ID, and it is not generated for new entities. Use the id field instead, which is the Smartscape ID.
<type>-017198AD253CBD63
namestringstable
Display name: Name
The entity name.
localhost; easyTravel; product-catalog
typestringstable
Display name: Type
The entity type. UPPER_SNAKE_CASE string that represents the type of the entity.
Tags: permission
TYPE_A
tagsrecordstable
Display name: Tags
A consolidated record that aggregates all tag values originating from different contexts. Each nested field within tags represents a specific key (for example, release or name). The value of each nested field is the tag value from one or multiple contexts. Tags for specific context can be queried via tags:context field. Note that rule-based tags do not exist in the new model.
tags[tag_key-1] = [context_A_tag_val-1, context_B_tag_val-1]; tags[tag_key-2] = context_C_tag_val-1; tags:context_A[tag_key-1] = context_A_tag_val-1
lifetimetimeframestable
Display name: Lifetime
The lifetime of the entity. This is a record with two nested fields: start and end, which represent the time when the entity was first and last observed, respectively. Each time an entity is updated, the end time is updated to the current time.
{ start: 2022-07-06T13:36:00.808Z, end: 2024-04-11T06:56:01.204Z }
referencesrecordstable
Display name: References
Provides access to static edges pointing to other entities. In this record each nested field represents a relationship type and target type, and the value is an array of target Smartscape IDs. This field is hidden by default but can be added using the fieldsAdd command.
{ references[runs_on.host] : [HOST-C251A1173C2B4B39,HOST-0E9038C7C4409D69], references[runs_on.container] : [CONTAINER-68A08967EF4F675B] }
dt.security_contextstring[]resource stable
Display name: DT security context
The security contexts associated with the entity. For Smartscape entities, this field is always an array.
Tags: permission
[]

GenAI provider entity fields

Fields specific to provider entities.

AttributeTypeDescriptionExamples
gen_ai.provider.namestringexperimental
Display name: Provider name
Name of GenAI product being used.
aws_bedrock; openai

gen_ai.provider.name has the following list of well-known values. If one of them applies, then the respective value MUST be used, otherwise a custom value MAY be used.

ValueDescriptionDisplay name
anthropicAnthropicAnthropic
aws.bedrockAmazon BedrockAmazon Bedrock
cohereCohereCohere
deepseekDeepSeekDeepSeek
gcp.geminiGoogle GeminiGoogle Gemini
gcp.vertex_aiGoogle Vertex AIGoogle Vertex AI
groqGroqGroq
ibm.watsonx.aiIBM Watsonx AIIBM Watsonx AI
microsoft.foundryMicrosoft FoundryMicrosoft Foundry
mistralMistralMistral
ollamaOllamaOllama
openaiOpenAIOpenAI
perplexityPerplexityPerplexity
x_aixAIxAI

GenAI provider relationships

Relationships of a GenAI provider entity.

TypeTarget typeKindDescription
belongs_toGENAI_MODELdynamicstable
This is similar to an aggregation in UML. It is a many-to-many relationship without existential properties (the destination is not composed of the sources).

GenAI service

Smartscape node name: dt.service.name

Smartscape node type: GENAI_SERVICE

This entity represents a GenAI service.

Query

Fetch all Smartscape nodes from the smartscape.nodes table and filter for the entity type "GENAI_SERVICE".

smartscapeNodes GENAI_SERVICE

Find the underlying service entity for each GenAI service, showing both service and GenAI service name.

smartscapeNodes GENAI_SERVICE
| traverse {instance_of}, {SERVICE}
| fieldsAdd gen_ai.service.name = getNodeName(dt.traverse.history[0][id])
| fieldsKeep id, lifetime, name, gen_ai.service.name

Count all service relationships, grouped by relationship type.

smartscapeEdges "*"
| filter source_type == "GENAI_SERVICE"
| summarize count(), by: {type}

Base entity fields

The following base fields are used for all entities.

AttributeTypeDescriptionExamples
idsmartscapeIdstable
Display name: ID
A Smartscape ID consists of two components: an UPPER_CASE entity type and a random 16-character hexadecimal unique identifier, separated by a dash. Use Smartscape conversion functions when working with strings that represent Smartscape IDs.
<type>-017198AD253CBD63
id_classicstringdeprecated
Display name: Classic ID
The entity ID that was used in the classic entity store. This ID is present in old monitoring data. Not all entities have this ID, and it is not generated for new entities. Use the id field instead, which is the Smartscape ID.
<type>-017198AD253CBD63
namestringstable
Display name: Name
The entity name.
localhost; easyTravel; product-catalog
typestringstable
Display name: Type
The entity type. UPPER_SNAKE_CASE string that represents the type of the entity.
Tags: permission
TYPE_A
tagsrecordstable
Display name: Tags
A consolidated record that aggregates all tag values originating from different contexts. Each nested field within tags represents a specific key (for example, release or name). The value of each nested field is the tag value from one or multiple contexts. Tags for specific context can be queried via tags:context field. Note that rule-based tags do not exist in the new model.
tags[tag_key-1] = [context_A_tag_val-1, context_B_tag_val-1]; tags[tag_key-2] = context_C_tag_val-1; tags:context_A[tag_key-1] = context_A_tag_val-1
lifetimetimeframestable
Display name: Lifetime
The lifetime of the entity. This is a record with two nested fields: start and end, which represent the time when the entity was first and last observed, respectively. Each time an entity is updated, the end time is updated to the current time.
{ start: 2022-07-06T13:36:00.808Z, end: 2024-04-11T06:56:01.204Z }
referencesrecordstable
Display name: References
Provides access to static edges pointing to other entities. In this record each nested field represents a relationship type and target type, and the value is an array of target Smartscape IDs. This field is hidden by default but can be added using the fieldsAdd command.
{ references[runs_on.host] : [HOST-C251A1173C2B4B39,HOST-0E9038C7C4409D69], references[runs_on.container] : [CONTAINER-68A08967EF4F675B] }
dt.security_contextstring[]resource stable
Display name: DT security context
The security contexts associated with the entity. For Smartscape entities, this field is always an array.
Tags: permission
[]

GenAI service entity fields

Fields specific to service entities.

AttributeTypeDescriptionExamples
dt.service.namestringresource stable
Display name: Service name
The Dynatrace service name derived from service detection rules. It is equal to the Smartscape service node name.
OrderProcessingService; payment-api

GenAI service relationships

Relationships of a GenAI service entity.

TypeTarget typeKindDescription
instance_ofSERVICEdynamicstable
Relationship field that contains all instance_of-relationships as nested fields.
Opposite direction: instantiates
usesGENAI_MODELdynamicstable
Similar to is_attached_to but in the opposite direction. Examples: EC2 Instance uses DHCP options, Auto Scaling Group uses EC2 Launch Template