Skip to content

Commit 62172d7

Browse files
committed
start generating weaver files
1 parent ba26be1 commit 62172d7

File tree

6 files changed

+523
-0
lines changed

6 files changed

+523
-0
lines changed

docs/instrumentation-list.yaml

Lines changed: 298 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5847,20 +5847,177 @@ libraries:
58475847
target_versions:
58485848
javaagent:
58495849
- redis.clients:jedis:[1.4.0,3.0.0)
5850+
telemetry:
5851+
- when: default
5852+
spans:
5853+
- span_kind: CLIENT
5854+
attributes:
5855+
- name: db.operation
5856+
type: STRING
5857+
- name: db.statement
5858+
type: STRING
5859+
- name: db.system
5860+
type: STRING
5861+
- name: peer.service
5862+
type: STRING
5863+
- name: server.address
5864+
type: STRING
5865+
- name: server.port
5866+
type: LONG
5867+
- when: otel.semconv-stability.opt-in=database
5868+
metrics:
5869+
- name: db.client.operation.duration
5870+
description: Duration of database client operations.
5871+
type: HISTOGRAM
5872+
unit: s
5873+
attributes:
5874+
- name: db.operation.name
5875+
type: STRING
5876+
- name: db.system.name
5877+
type: STRING
5878+
- name: server.address
5879+
type: STRING
5880+
- name: server.port
5881+
type: LONG
5882+
spans:
5883+
- span_kind: CLIENT
5884+
attributes:
5885+
- name: db.operation.name
5886+
type: STRING
5887+
- name: db.query.text
5888+
type: STRING
5889+
- name: db.system.name
5890+
type: STRING
5891+
- name: peer.service
5892+
type: STRING
5893+
- name: server.address
5894+
type: STRING
5895+
- name: server.port
5896+
type: LONG
58505897
- name: jedis-3.0
58515898
source_path: instrumentation/jedis/jedis-3.0
58525899
scope:
58535900
name: io.opentelemetry.jedis-3.0
58545901
target_versions:
58555902
javaagent:
58565903
- redis.clients:jedis:[3.0.0,4)
5904+
telemetry:
5905+
- when: default
5906+
spans:
5907+
- span_kind: CLIENT
5908+
attributes:
5909+
- name: db.operation
5910+
type: STRING
5911+
- name: db.statement
5912+
type: STRING
5913+
- name: db.system
5914+
type: STRING
5915+
- name: network.peer.address
5916+
type: STRING
5917+
- name: network.peer.port
5918+
type: LONG
5919+
- name: network.type
5920+
type: STRING
5921+
- name: peer.service
5922+
type: STRING
5923+
- name: server.address
5924+
type: STRING
5925+
- name: server.port
5926+
type: LONG
5927+
- when: otel.semconv-stability.opt-in=database
5928+
metrics:
5929+
- name: db.client.operation.duration
5930+
description: Duration of database client operations.
5931+
type: HISTOGRAM
5932+
unit: s
5933+
attributes:
5934+
- name: db.operation.name
5935+
type: STRING
5936+
- name: db.system.name
5937+
type: STRING
5938+
- name: network.peer.address
5939+
type: STRING
5940+
- name: network.peer.port
5941+
type: LONG
5942+
- name: server.address
5943+
type: STRING
5944+
- name: server.port
5945+
type: LONG
5946+
spans:
5947+
- span_kind: CLIENT
5948+
attributes:
5949+
- name: db.operation.name
5950+
type: STRING
5951+
- name: db.query.text
5952+
type: STRING
5953+
- name: db.system.name
5954+
type: STRING
5955+
- name: network.peer.address
5956+
type: STRING
5957+
- name: network.peer.port
5958+
type: LONG
5959+
- name: network.type
5960+
type: STRING
5961+
- name: peer.service
5962+
type: STRING
5963+
- name: server.address
5964+
type: STRING
5965+
- name: server.port
5966+
type: LONG
58575967
- name: jedis-4.0
58585968
source_path: instrumentation/jedis/jedis-4.0
58595969
scope:
58605970
name: io.opentelemetry.jedis-4.0
58615971
target_versions:
58625972
javaagent:
58635973
- redis.clients:jedis:[4.0.0-beta1,)
5974+
telemetry:
5975+
- when: default
5976+
spans:
5977+
- span_kind: CLIENT
5978+
attributes:
5979+
- name: db.operation
5980+
type: STRING
5981+
- name: db.statement
5982+
type: STRING
5983+
- name: db.system
5984+
type: STRING
5985+
- name: network.peer.address
5986+
type: STRING
5987+
- name: network.peer.port
5988+
type: LONG
5989+
- name: network.type
5990+
type: STRING
5991+
- when: otel.semconv-stability.opt-in=database
5992+
metrics:
5993+
- name: db.client.operation.duration
5994+
description: Duration of database client operations.
5995+
type: HISTOGRAM
5996+
unit: s
5997+
attributes:
5998+
- name: db.operation.name
5999+
type: STRING
6000+
- name: db.system.name
6001+
type: STRING
6002+
- name: network.peer.address
6003+
type: STRING
6004+
- name: network.peer.port
6005+
type: LONG
6006+
spans:
6007+
- span_kind: CLIENT
6008+
attributes:
6009+
- name: db.operation.name
6010+
type: STRING
6011+
- name: db.query.text
6012+
type: STRING
6013+
- name: db.system.name
6014+
type: STRING
6015+
- name: network.peer.address
6016+
type: STRING
6017+
- name: network.peer.port
6018+
type: LONG
6019+
- name: network.type
6020+
type: STRING
58646021
jetty:
58656022
- name: jetty-11.0
58666023
source_path: instrumentation/jetty/jetty-11.0
@@ -5870,6 +6027,53 @@ libraries:
58706027
target_versions:
58716028
javaagent:
58726029
- org.eclipse.jetty:jetty-server:[11, 12)
6030+
telemetry:
6031+
- when: default
6032+
metrics:
6033+
- name: http.server.request.duration
6034+
description: Duration of HTTP server requests.
6035+
type: HISTOGRAM
6036+
unit: s
6037+
attributes:
6038+
- name: http.request.method
6039+
type: STRING
6040+
- name: http.response.status_code
6041+
type: LONG
6042+
- name: network.protocol.version
6043+
type: STRING
6044+
- name: url.scheme
6045+
type: STRING
6046+
spans:
6047+
- span_kind: SERVER
6048+
attributes:
6049+
- name: client.address
6050+
type: STRING
6051+
- name: error.type
6052+
type: STRING
6053+
- name: http.request.method
6054+
type: STRING
6055+
- name: http.request.method_original
6056+
type: STRING
6057+
- name: http.response.status_code
6058+
type: LONG
6059+
- name: network.peer.address
6060+
type: STRING
6061+
- name: network.peer.port
6062+
type: LONG
6063+
- name: network.protocol.version
6064+
type: STRING
6065+
- name: server.address
6066+
type: STRING
6067+
- name: server.port
6068+
type: LONG
6069+
- name: url.path
6070+
type: STRING
6071+
- name: url.query
6072+
type: STRING
6073+
- name: url.scheme
6074+
type: STRING
6075+
- name: user_agent.original
6076+
type: STRING
58736077
- name: jetty-12.0
58746078
source_path: instrumentation/jetty/jetty-12.0
58756079
minimum_java_version: 17
@@ -5878,13 +6082,107 @@ libraries:
58786082
target_versions:
58796083
javaagent:
58806084
- org.eclipse.jetty:jetty-server:[12,)
6085+
telemetry:
6086+
- when: default
6087+
metrics:
6088+
- name: http.server.request.duration
6089+
description: Duration of HTTP server requests.
6090+
type: HISTOGRAM
6091+
unit: s
6092+
attributes:
6093+
- name: http.request.method
6094+
type: STRING
6095+
- name: http.response.status_code
6096+
type: LONG
6097+
- name: network.protocol.version
6098+
type: STRING
6099+
- name: url.scheme
6100+
type: STRING
6101+
spans:
6102+
- span_kind: SERVER
6103+
attributes:
6104+
- name: client.address
6105+
type: STRING
6106+
- name: error.type
6107+
type: STRING
6108+
- name: http.request.method
6109+
type: STRING
6110+
- name: http.request.method_original
6111+
type: STRING
6112+
- name: http.response.status_code
6113+
type: LONG
6114+
- name: network.peer.address
6115+
type: STRING
6116+
- name: network.peer.port
6117+
type: LONG
6118+
- name: network.protocol.version
6119+
type: STRING
6120+
- name: server.address
6121+
type: STRING
6122+
- name: server.port
6123+
type: LONG
6124+
- name: url.path
6125+
type: STRING
6126+
- name: url.query
6127+
type: STRING
6128+
- name: url.scheme
6129+
type: STRING
6130+
- name: user_agent.original
6131+
type: STRING
58816132
- name: jetty-8.0
58826133
source_path: instrumentation/jetty/jetty-8.0
58836134
scope:
58846135
name: io.opentelemetry.jetty-8.0
58856136
target_versions:
58866137
javaagent:
58876138
- org.eclipse.jetty:jetty-server:[8.0.0.v20110901,11)
6139+
telemetry:
6140+
- when: default
6141+
metrics:
6142+
- name: http.server.request.duration
6143+
description: Duration of HTTP server requests.
6144+
type: HISTOGRAM
6145+
unit: s
6146+
attributes:
6147+
- name: http.request.method
6148+
type: STRING
6149+
- name: http.response.status_code
6150+
type: LONG
6151+
- name: network.protocol.version
6152+
type: STRING
6153+
- name: url.scheme
6154+
type: STRING
6155+
spans:
6156+
- span_kind: SERVER
6157+
attributes:
6158+
- name: client.address
6159+
type: STRING
6160+
- name: error.type
6161+
type: STRING
6162+
- name: http.request.method
6163+
type: STRING
6164+
- name: http.request.method_original
6165+
type: STRING
6166+
- name: http.response.status_code
6167+
type: LONG
6168+
- name: network.peer.address
6169+
type: STRING
6170+
- name: network.peer.port
6171+
type: LONG
6172+
- name: network.protocol.version
6173+
type: STRING
6174+
- name: server.address
6175+
type: STRING
6176+
- name: server.port
6177+
type: LONG
6178+
- name: url.path
6179+
type: STRING
6180+
- name: url.query
6181+
type: STRING
6182+
- name: url.scheme
6183+
type: STRING
6184+
- name: user_agent.original
6185+
type: STRING
58886186
- name: jetty-httpclient-12.0
58896187
source_path: instrumentation/jetty-httpclient/jetty-httpclient-12.0
58906188
minimum_java_version: 17

instrumentation-docs/src/main/java/io/opentelemetry/instrumentation/docs/DocGeneratorApplication.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
package io.opentelemetry.instrumentation.docs;
77

8+
import static io.opentelemetry.instrumentation.docs.WeaverModelGenerator.generateWeaverModels;
89
import static java.util.Locale.Category.FORMAT;
910

1011
import io.opentelemetry.instrumentation.docs.internal.InstrumentationModule;
@@ -47,6 +48,8 @@ public static void main(String[] args) throws IOException {
4748
YamlHelper.generateInstrumentationYaml(modules, writer);
4849
}
4950

51+
generateWeaverModels(modules);
52+
5053
printStats(modules);
5154
}
5255

0 commit comments

Comments
 (0)