Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#
# Copyright 2021-2023 Aklivity Inc
#
# Licensed under the Aklivity Community License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://www.aklivity.io/aklivity-community-license/
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
#

connect "zilla://streams/app0"
option zilla:window 8192

connected


connect "http://localhost:4318/v1/logs"
connected

write http:method "POST"
write http:version "HTTP/1.1"
write http:header "Host" "localhost:4318"
write http:header "Content-Length" "366"
write
'{'
'"resourceLogs":['
'{'
'"resource":{'
'"attributes":['
'{'
'"key":"service.namespace",'
'"value":{'
'"stringValue":"example"'
'}'
'}'
']'
'},'
'"scopeLogs":['
'{'
'"scope":{'
'"name":"OtlpLogsSerializer",'
'"version":"1.0.0"'
'},'
'"logRecords":['
'{'
'"timeUnixNano":42000000,'
'"observedTimeUnixNano":42000000,'
'"body":{'
'"stringValue":"test event message"'
'},'
'"attributes":['
'{'
'"key":"qname",'
'"value":{'
'"stringValue":"test.net0"'
'}'
'}'
']'
'}'
']'
'}'
']'
'}'
']'
'}'
write close

read http:status "200" "OK"
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@

accept "zilla://streams/app0"
option zilla:window 8192

accepted
connected


accept "http://localhost:4318/v1/logs"
accepted
connected

read http:method "POST"
read http:version "HTTP/1.1"
read http:header "Host" "localhost:4318"
read http:header "Content-Length" "366"
read
'{'
'"resourceLogs":['
Expand All @@ -50,22 +51,14 @@ read
'{'
'"timeUnixNano":42000000,'
'"observedTimeUnixNano":42000000,'
'"traceId":"8000000000000001",'
'"spanId":"100000004",'
'"body":{'
'"stringValue":"body"'
'"stringValue":"test event message"'
'},'
'"attributes":['
'{'
'"key":"event.name",'
'"value":{'
'"stringValue":"test.test"'
'}'
'},'
'{'
'"key":"extension",'
'"key":"qname",'
Comment thread
attilakreiner marked this conversation as resolved.
Outdated
'"value":{'
'"stringValue":"test event message"'
'"stringValue":"test.net0"'
'}'
'}'
']'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,268 @@
#
# Copyright 2021-2023 Aklivity Inc
#
# Licensed under the Aklivity Community License (the "License"); you may not use
# this file except in compliance with the License. You may obtain a copy of the
# License at
#
# https://www.aklivity.io/aklivity-community-license/
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.
#

connect "http://localhost:4318/v1/metrics"
connected

write http:method "POST"
write http:version "HTTP/1.1"
write http:header "Host" "localhost:4318"
write http:header "Content-Length" "1953"
write
'{'
'"resourceMetrics":['
'{'
'"resource":{'
'"attributes":['
'{'
'"key":"service.namespace",'
'"value":{'
'"stringValue":"example"'
'}'
'}'
']'
'},'
'"scopeMetrics":['
'{'
'"scope":{'
'"name":"OtlpMetricsSerializer",'
'"version":"1.0.0"'
'},'
'"metrics":['
'{'
'"name":"test.counter",'
'"unit":"",'
'"description":"Description for test.counter",'
'"sum":{'
'"dataPoints":['
'{'
'"asInt":77,'
'"timeUnixNano":0123456789123456789,'
'"attributes":['
'{'
'"key":"namespace",'
'"value":{'
'"stringValue":"test"'
'}'
'},'
'{'
'"key":"binding",'
'"value":{'
'"stringValue":"net0"'
'}'
'}'
']'
'}'
'],'
'"aggregationTemporality":2,'
'"isMonotonic":true'
'}'
'},'
'{'
'"name":"test.gauge",'
'"unit":"",'
'"description":"Description for test.gauge",'
'"gauge":{'
'"dataPoints":['
'{'
'"asInt":66,'
'"timeUnixNano":0123456789123456789,'
'"attributes":['
'{'
'"key":"namespace",'
'"value":{'
'"stringValue":"test"'
'}'
'},'
'{'
'"key":"binding",'
'"value":{'
'"stringValue":"net0"'
'}'
'}'
']'
'}'
']'
'}'
'},'
'{'
'"name":"test.histogram",'
'"description":"Description for test.histogram",'
'"unit":"bytes",'
'"histogram":{'
'"aggregationTemporality":2,'
'"dataPoints":['
'{'
'"timeUnixNano":0123456789123456789,'
'"attributes":['
'{'
'"key":"namespace",'
'"value":{'
'"stringValue":"test"'
'}'
'},'
'{'
'"key":"binding",'
'"value":{'
'"stringValue":"net0"'
'}'
'}'
'],'
'"min":1,'
'"max":31,'
'"sum":63,'
'"count":3,'
'"explicitBounds":['
'2,'
'4,'
'8,'
'16,'
'32,'
'64,'
'128,'
'256,'
'512,'
'1024,'
'2048,'
'4096,'
'8192,'
'16384,'
'32768,'
'65536,'
'131072,'
'262144,'
'524288,'
'1048576,'
'2097152,'
'4194304,'
'8388608,'
'16777216,'
'33554432,'
'67108864,'
'134217728,'
'268435456,'
'536870912,'
'1073741824,'
'2147483648,'
'4294967296,'
'8589934592,'
'17179869184,'
'34359738368,'
'68719476736,'
'137438953472,'
'274877906944,'
'549755813888,'
'1099511627776,'
'2199023255552,'
'4398046511104,'
'8796093022208,'
'17592186044416,'
'35184372088832,'
'70368744177664,'
'140737488355328,'
'281474976710656,'
'562949953421312,'
'1125899906842624,'
'2251799813685248,'
'4503599627370496,'
'9007199254740992,'
'18014398509481984,'
'36028797018963968,'
'72057594037927936,'
'144115188075855872,'
'288230376151711744,'
'576460752303423488,'
'1152921504606846976,'
'2305843009213693952,'
'4611686018427387904'
'],'
'"bucketCounts":['
'1,'
'0,'
'0,'
'0,'
'2,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0,'
'0'
']'
'}'
']'
'}'
'}'
']'
'}'
']'
'}'
']'
'}'
write close

read http:status "200" "OK"
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ connected
read http:method "POST"
read http:version "HTTP/1.1"
read http:header "Host" "localhost:4318"
read http:header "Content-Length" "1953"
read
'{'
'"resourceMetrics":['
Expand Down
Loading