Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit fe692c1

Browse files
committed
use web framework
1 parent 255d87e commit fe692c1

File tree

1 file changed

+61
-74
lines changed

1 file changed

+61
-74
lines changed

src/docs/sdk/performance/span-operations.mdx

Lines changed: 61 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ If a span operation is not provided, the value of `default` is set by Relay.
2323
| Category | Usage | Description |
2424
| -------- | ----- | --------------------------------------------------- |
2525
| mark | | A general point-in-time span (span with 0 duration) |
26+
| function | | The time it took for a general function to execute |
2627

2728
## Browser
2829

@@ -81,62 +82,51 @@ JS Frameworks should be prepended with the `ui` category for operations related
8182

8283
Web server related spans should aim to follow OpenTelemetry's [HTTP](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/http.md) and [RPC](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/rpc.md) semantic conventions when possible.
8384

84-
| Category | Usage | Description |
85-
| ---------- | ------------------------------------- | ------------------------------------------------------------------ |
86-
| http | | Spans related to http operations |
87-
| | http.client | |
88-
| | http.server | |
89-
| websocket | | |
90-
| | websocket.server | |
91-
| rpc | | Spans related to remote procedure calls (RPC) |
92-
| grpc | | Usage of the [gRPC framework](https://grpc.io/) |
93-
| graphql | | a GraphQL operation |
94-
| | graphql.execute | |
95-
| | graphql.resolve | |
96-
| | graphql.request | |
97-
| | graphql.query | |
98-
| | graphql.mutation | |
99-
| | graphql.subscription | |
100-
| subprocess | | |
101-
| | subprocess.wait | |
102-
| | subprocess.communicate | |
103-
| middleware | | Usage of webserver middleware |
104-
| | middleware.express | |
105-
| | middleware.starlette | |
106-
| | middleware.django | |
107-
| view | | Rendering of a view |
108-
| | view.django | |
109-
| | view.process_action.action_controller | |
110-
| | view.render | |
111-
| template | | |
112-
| | template.init | |
113-
| | template.parse | |
114-
| | template.render | |
115-
| | template.django.render | |
116-
| | template.render_template.action_view | |
117-
| serialize | | Serialization of data |
118-
| console | | Accessing web servers through the command line (ex. Rails console) |
119-
| | console.command | |
120-
| file | | Operations on the file system (internal or external) |
121-
122-
## Web Frameworks
123-
124-
When possible, you should use the generalized web server span operations above.
125-
126-
| Category | Usage | Description |
127-
| ----------- | ----------------------------- | ---------------------------------------------------------- |
128-
| asgi.server | | |
129-
| laravel | | |
130-
| | laravel.handle | |
131-
| | laravel.bootstrap | |
132-
| | laravel.autoload | |
133-
| | laravel.autoload | |
134-
| remix | | Spans related to the [Remix](https://remix.run/) framework |
135-
| | remix.server.document_request | |
136-
| | remix.server.action | |
137-
| | remix.server.loader | |
138-
| nextjs | |
139-
| | nextjs.data.server | |
85+
| Category | Usage | Description |
86+
| --------------- | ------------------------------------- | ------------------------------------------------------------------ |
87+
| http | | Spans related to http operations |
88+
| | http.client | |
89+
| | http.server | |
90+
| websocket | | |
91+
| | websocket.server | |
92+
| rpc | | Spans related to remote procedure calls (RPC) |
93+
| grpc | | Usage of the [gRPC framework](https://grpc.io/) |
94+
| graphql | | a GraphQL operation |
95+
| | graphql.execute | |
96+
| | graphql.resolve | |
97+
| | graphql.request | |
98+
| | graphql.query | |
99+
| | graphql.mutation | |
100+
| | graphql.subscription | |
101+
| subprocess | | |
102+
| | subprocess.wait | |
103+
| | subprocess.communicate | |
104+
| middleware | | Usage of webserver middleware |
105+
| | middleware.express | |
106+
| | middleware.express | |
107+
| | middleware.starlette | |
108+
| | middleware.django | |
109+
| view | | Rendering of a view |
110+
| | view.django | |
111+
| | view.process_action.action_controller | |
112+
| | view.render | |
113+
| template | | |
114+
| | template.init | |
115+
| | template.parse | |
116+
| | template.render | |
117+
| | template.django.render | |
118+
| | template.render_template.action_view | |
119+
| function | | |
120+
| function.remix | | Spans related to [Remix](https://remix.run/) data fetchers |
121+
| | function.remix.document_request | |
122+
| | function.remix.action | |
123+
| | function.remix.loader | |
124+
| function.nextjs | | Spans related to [NextJS](https://nextjs.org/) data fetchers |
125+
| | function.nextjs | |
126+
| serialize | | Serialization of data |
127+
| console | | Accessing web servers through the command line (ex. Rails console) |
128+
| | console.command | |
129+
| file | | Operations on the file system (internal or external) |
140130

141131
## Database
142132

@@ -161,20 +151,20 @@ Databased related spans are expected to follow OpenTelemetry's [Database](https:
161151

162152
Serverless related spans are expected to follow OpenTelemetry's [Function as a Service](https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/semantic_conventions/faas.md) (FaaS) semantic conventions when possible.
163153

164-
| Category | Usage | Description |
165-
| ---------- | -------------------- | ------------------------------------------- |
166-
| http | | |
167-
| | http.client | |
168-
| | http.client.stream | |
169-
| grpc | | |
170-
| | grpc.client | |
171-
| faas.gcp | | Invocations of a GCP function |
172-
| | faas.gcp.event | |
173-
| | faas.gcp.cloud_event | |
174-
| | faas.gcp.http | |
175-
| faas.aws | | Invocations of an AWS serverless function |
176-
| | faas.aws.lambda | |
177-
| faas.azure | | Invocations of an Azure serverless function |
154+
| Category | Usage | Description |
155+
| -------------- | ------------------------ | ------------------------------------------- |
156+
| http | | |
157+
| | http.client | |
158+
| | http.client.stream | |
159+
| grpc | | |
160+
| | grpc.client | |
161+
| function.gcp | | Invocations of a GCP function |
162+
| | function.gcp.event | |
163+
| | function.gcp.cloud_event | |
164+
| | function.gcp.http | |
165+
| function.aws | | Invocations of an AWS serverless function |
166+
| | function.aws.lambda | |
167+
| function.azure | | Invocations of an Azure serverless function |
178168

179169
## Mobile
180170

@@ -268,9 +258,6 @@ Messages/Queue spans are expected follow OpenTelemetry's [Messaging](https://git
268258
| console | |
269259
| db | |
270260
| file | |
271-
| faas | |
261+
| function | |
272262
| topic | |
273263
| queue | |
274-
| asgi | |
275-
| remix | |
276-
| laravel | |

0 commit comments

Comments
 (0)