CtrlK
BlogDocsLog inGet started
Tessl Logo

dash0/agent-skills

Expert guidance for configuring and deploying the OpenTelemetry Collector. Use when setting up a Collector pipeline, configuring receivers, exporters, or processors, deploying a Collector to Kubernetes or Docker, or forwarding telemetry to Dash0. Triggers on requests involving collector, pipeline, OTLP receiver, exporter, or Dash0 collector setup.

100

Quality

100%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Advisory

Suggest reviewing before use

Overview
Quality
Evals
Security
Files

function-reference.mdskills/otel-ottl/rules/

OTTL function reference

Editors

Editors modify telemetry data in-place. They are lowercase.

FunctionSignatureDescription
appendappend(target, Optional[value], Optional[values])Appends single or multiple values to a target field, converting scalars to arrays if needed
delete_keydelete_key(target, key)Removes a key from a map
delete_matching_keysdelete_matching_keys(target, pattern)Removes all keys matching a regex pattern
flattenflatten(target, Optional[prefix], Optional[depth])Flattens nested maps to the root level
keep_keyskeep_keys(target, keys[])Removes all keys NOT in the supplied list
keep_matching_keyskeep_matching_keys(target, pattern)Keeps only keys matching a regex pattern
limitlimit(target, limit, priority_keys[])Reduces map size to not exceed limit, preserving priority keys
merge_mapsmerge_maps(target, source, strategy)Merges source into target (strategy: insert, update, upsert)
replace_all_matchesreplace_all_matches(target, pattern, replacement)Replaces matching string values using glob patterns
replace_all_patternsreplace_all_patterns(target, mode, regex, replacement)Replaces segments matching regex (mode: key or value)
replace_matchreplace_match(target, pattern, replacement)Replaces entire string if it matches a glob pattern
replace_patternreplace_pattern(target, regex, replacement)Replaces string sections matching a regex
delete_indexdelete_index(target, startIndex, Optional[endIndex])Removes elements from a slice between start and (optional) end indices
setset(target, value)Sets a telemetry field to a value
truncate_alltruncate_all(target, limit)Truncates all string values in a map to a max length

Converters: type checking

FunctionSignatureDescription
IsBoolIsBool(value)Returns true if value is boolean
IsDoubleIsDouble(value)Returns true if value is float64
IsIntIsInt(value)Returns true if value is int64
IsInCIDRIsInCIDR(target, networks...)Returns true if IP address falls within any specified CIDR range
IsMapIsMap(value)Returns true if value is a map
IsListIsList(value)Returns true if value is a list
IsMatchIsMatch(target, pattern)Returns true if target matches regex pattern
IsRootSpanIsRootSpan()Returns true if span has no parent
IsStringIsString(value)Returns true if value is a string

Converters: type conversion

FunctionSignatureDescription
BoolBool(value)Converts value to boolean
DoubleDouble(value)Converts value to float64
IntInt(value)Converts value to int64
StringString(value)Converts value to string

Converters: string manipulation

FunctionSignatureDescription
ConcatConcat(values[], delimiter)Concatenates values with a delimiter
ConvertCaseConvertCase(target, toCase)Converts to lower, upper, snake, or camel
HasPrefixHasPrefix(value, prefix)Returns true if value starts with prefix
HasSuffixHasSuffix(value, suffix)Returns true if value ends with suffix
IndexIndex(target, value)Returns first index of value in target, or -1
SplitSplit(target, delimiter)Splits string into array by delimiter
SubstringSubstring(target, start, length)Extracts substring from start position
ToCamelCaseToCamelCase(target)Converts to CamelCase
ToLowerCaseToLowerCase(target)Converts to lowercase
ToSnakeCaseToSnakeCase(target)Converts to snake_case
ToUpperCaseToUpperCase(target)Converts to UPPERCASE
TrimTrim(target, Optional[char])Removes leading/trailing characters
TrimPrefixTrimPrefix(value, prefix)Removes leading prefix
TrimSuffixTrimSuffix(value, suffix)Removes trailing suffix

Converters: hashing

FunctionSignatureDescription
FNVFNV(value)Returns FNV hash as int64
MD5MD5(value)Returns MD5 hash as hex string
Murmur3HashMurmur3Hash(target)Returns 32-bit Murmur3 hash as hex string
Murmur3Hash128Murmur3Hash128(target)Returns 128-bit Murmur3 hash as hex string
SHA1SHA1(value)Returns SHA1 hash as hex string
SHA256SHA256(value)Returns SHA256 hash as hex string
SHA512SHA512(value)Returns SHA512 hash as hex string
XXH3XXH3(value)Returns 64-bit XXH3 hash as hex string
XXH128XXH128(value)Returns 128-bit XXH3 hash as hex string

Converters: encoding and decoding

FunctionSignatureDescription
Base64DecodeBase64Decode(target)Decodes a base64-encoded string
Base64EncodeBase64Encode(target, Optional[variant])Encodes a string to base64 (variants: base64, base64-raw, base64-url, base64-raw-url)
DecodeDecode(value, encoding)Decodes string (base64, base64-raw, base64-url, IANA encodings)
HexHex(value)Returns hexadecimal representation

Converters: parsing

FunctionSignatureDescription
ExtractPatternsExtractPatterns(target, pattern)Extracts named regex capture groups into a map
ExtractGrokPatternsExtractGrokPatterns(target, pattern, Optional[namedOnly], Optional[defs])Parses unstructured data using grok patterns
ParseCSVParseCSV(target, headers, Optional[delimiter], Optional[headerDelimiter], Optional[mode])Parses CSV string to map
ParseIntParseInt(target, base)Parses string as integer in given base (2-36)
ParseJSONParseJSON(target)Parses JSON string to map or slice
ParseKeyValueParseKeyValue(target, Optional[delimiter], Optional[pair_delimiter])Parses key-value string to map
ParseSeverityParseSeverity(target, severityMapping)Maps log level value to severity string
ParseSimplifiedXMLParseSimplifiedXML(target)Parses XML string to map (ignores attributes)
ParseXMLParseXML(target)Parses XML string to map (preserves structure)

Converters: time and date

FunctionSignatureDescription
DayDay(value)Returns day component from time
DurationDuration(duration)Parses duration string (e.g. "3s", "333ms")
FormatTimeFormatTime(time, format)Formats time to string using Go layout
HourHour(value)Returns hour component from time
HoursHours(value)Returns duration as floating-point hours
MicrosecondsMicroseconds(duration)Returns duration as floating-point microseconds
MillisecondsMilliseconds(duration)Returns duration as floating-point milliseconds
MinuteMinute(value)Returns minute component from time
MinutesMinutes(value)Returns duration as floating-point minutes
MonthMonth(value)Returns month component from time
NanosecondNanosecond(value)Returns nanosecond component from time
NanosecondsNanoseconds(value)Returns duration as nanosecond count
NowNow()Returns current time
SecondSecond(value)Returns second component from time
SecondsSeconds(value)Returns duration as floating-point seconds
TimeTime(target, format, Optional[location], Optional[locale])Parses string to time
TruncateTimeTruncateTime(time, duration)Truncates time to multiple of duration
UnixUnix(seconds, Optional[nanoseconds])Creates time from Unix epoch
UnixMicroUnixMicro(value)Returns time as microseconds since epoch
UnixMilliUnixMilli(value)Returns time as milliseconds since epoch
UnixNanoUnixNano(value)Returns time as nanoseconds since epoch
UnixSecondsUnixSeconds(value)Returns time as seconds since epoch
WeekdayWeekday(value)Returns day of week from time
YearYear(value)Returns year component from time

Converters: collections

FunctionSignatureDescription
ContainsValueContainsValue(target, item)Returns true if item exists in slice
FormatFormat(formatString, args[])Formats string using fmt.Sprintf syntax
KeysKeys(target)Returns all keys from a map
LenLen(target)Returns length of string, slice, or map
SliceToMapSliceToMap(target, Optional[keyPath], Optional[valuePath])Converts slice of objects to map
SortSort(target, Optional[order])Sorts array (asc or desc)
ToKeyValueStringToKeyValueString(target, Optional[delim], Optional[pairDelim], Optional[sort])Converts map to key-value string
ValuesValues(target)Returns all values from a map

Converters: IDs and encoding

FunctionSignatureDescription
ProfileIDProfileID(bytes|string)Creates ProfileID from 16 bytes or 32 hex chars
SpanIDSpanID(bytes|string)Creates SpanID from 8 bytes or 16 hex chars
TraceIDTraceID(bytes|string)Creates TraceID from 16 bytes or 32 hex chars
UUIDUUID()Generates a new UUID
UUIDv7UUIDv7()Generates a new UUIDv7

Converters: XML

FunctionSignatureDescription
ConvertAttributesToElementsXMLConvertAttributesToElementsXML(target, Optional[xpath])Converts XML attributes to child elements
ConvertTextToElementsXMLConvertTextToElementsXML(target, Optional[xpath], Optional[name])Wraps XML text content in elements
GetXMLGetXML(target, xpath)Returns XML elements matching XPath
InsertXMLInsertXML(target, xpath, value)Inserts XML at XPath locations
RemoveXMLRemoveXML(target, xpath)Removes XML elements matching XPath

Converters: miscellaneous

FunctionSignatureDescription
CoalesceCoalesce(values...)Returns the first non-nil value, or nil if all are nil
CommunityIDCommunityID(srcIP, srcPort, dstIP, dstPort, Optional[proto], Optional[seed])Generates network flow hash
IsValidLuhnIsValidLuhn(value)Returns true if value passes Luhn check
LogLog(value)Returns natural logarithm as float64
URLURL(url_string)Parses URL into components (scheme, host, path, etc.)
UserAgentUserAgent(value)Parses user-agent string into map (name, version, OS)

skills

README.md

tile.json