@fedify/fedify 1.3.0-dev.511 → 1.3.0-dev.512
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGES.md +10 -0
- package/esm/deno.js +3 -1
- package/esm/federation/middleware.js +66 -22
- package/esm/federation/router.js +4 -0
- package/package.json +3 -1
- package/types/deno.d.ts +2 -0
- package/types/federation/middleware.d.ts +8 -0
- package/types/federation/middleware.d.ts.map +1 -1
- package/types/federation/router.d.ts +19 -4
- package/types/federation/router.d.ts.map +1 -1
package/CHANGES.md
CHANGED
@@ -51,6 +51,16 @@ To be released.
|
|
51
51
|
- Added `FetchKeyOptions` interface.
|
52
52
|
- Added `FetchKeyResult` interface.
|
53
53
|
|
54
|
+
- The `Router` now provide the matched route's URI template besides the name.
|
55
|
+
|
56
|
+
- The return type of `Router.route()` method became `RouterRouteResult |
|
57
|
+
null` (was `{ name: string; values: Record<string, string> } | null`).
|
58
|
+
- Added `RouterRouteResult` interface.
|
59
|
+
|
60
|
+
- Fedify now supports OpenTelemetry for tracing.
|
61
|
+
|
62
|
+
- Added `CreateFederationOptions.tracerProvider` option.
|
63
|
+
|
54
64
|
- The scaffold project generated by `fedify init` command now enables
|
55
65
|
tracing data into log messages.
|
56
66
|
|
package/esm/deno.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export default {
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "1.3.0-dev.
|
3
|
+
"version": "1.3.0-dev.512+714fd9fa",
|
4
4
|
"license": "MIT",
|
5
5
|
"exports": {
|
6
6
|
".": "./mod.ts",
|
@@ -31,6 +31,8 @@ export default {
|
|
31
31
|
"@hongminhee/aitertools": "jsr:@hongminhee/aitertools@^0.6.0",
|
32
32
|
"@hugoalh/http-header-link": "jsr:@hugoalh/http-header-link@^1.0.2",
|
33
33
|
"@logtape/logtape": "jsr:@logtape/logtape@^0.8.0",
|
34
|
+
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
|
35
|
+
"@opentelemetry/semantic-conventions": "npm:@opentelemetry/semantic-conventions@^1.27.0",
|
34
36
|
"@phensley/language-tag": "npm:@phensley/language-tag@^1.9.0",
|
35
37
|
"@std/assert": "jsr:@std/assert@^0.226.0",
|
36
38
|
"@std/async": "jsr:@std/async@^1.0.5",
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import * as dntShim from "../_dnt.shims.js";
|
2
2
|
import { getLogger, withContext } from "@logtape/logtape";
|
3
|
+
import { SpanKind, SpanStatusCode, trace, } from "@opentelemetry/api";
|
4
|
+
import { ATTR_HTTP_REQUEST_HEADER, ATTR_HTTP_REQUEST_METHOD, ATTR_HTTP_RESPONSE_HEADER, ATTR_HTTP_RESPONSE_STATUS_CODE, ATTR_URL_FULL, } from "@opentelemetry/semantic-conventions";
|
5
|
+
import metadata from "../deno.js";
|
3
6
|
import { handleNodeInfo, handleNodeInfoJrd } from "../nodeinfo/handler.js";
|
4
7
|
import { getAuthenticatedDocumentLoader, getDocumentLoader, kvCache, } from "../runtime/docloader.js";
|
5
8
|
import { verifyRequest } from "../sig/http.js";
|
@@ -58,6 +61,7 @@ export class FederationImpl {
|
|
58
61
|
skipSignatureVerification;
|
59
62
|
outboxRetryPolicy;
|
60
63
|
inboxRetryPolicy;
|
64
|
+
tracerProvider;
|
61
65
|
constructor(options) {
|
62
66
|
this.kv = options.kv;
|
63
67
|
this.kvPrefixes = {
|
@@ -125,6 +129,10 @@ export class FederationImpl {
|
|
125
129
|
createExponentialBackoffPolicy();
|
126
130
|
this.inboxRetryPolicy = options.inboxRetryPolicy ??
|
127
131
|
createExponentialBackoffPolicy();
|
132
|
+
this.tracerProvider = options.tracerProvider ?? trace.getTracerProvider();
|
133
|
+
}
|
134
|
+
#getTracer() {
|
135
|
+
return this.tracerProvider.getTracer(metadata.name, metadata.version);
|
128
136
|
}
|
129
137
|
async #startQueue(ctxData, signal, queue) {
|
130
138
|
if (this.inboxQueue == null && this.outboxQueue == null)
|
@@ -1006,35 +1014,71 @@ export class FederationImpl {
|
|
1006
1014
|
fetch(request, options) {
|
1007
1015
|
const requestId = getRequestId(request);
|
1008
1016
|
return withContext({ requestId }, async () => {
|
1009
|
-
const
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1017
|
+
const tracer = this.#getTracer();
|
1018
|
+
return await tracer.startActiveSpan(request.method, {
|
1019
|
+
kind: SpanKind.SERVER,
|
1020
|
+
attributes: {
|
1021
|
+
[ATTR_HTTP_REQUEST_METHOD]: request.method,
|
1022
|
+
[ATTR_URL_FULL]: request.url,
|
1023
|
+
},
|
1024
|
+
}, async (span) => {
|
1025
|
+
const logger = getLogger(["fedify", "federation", "http"]);
|
1026
|
+
if (span.isRecording()) {
|
1027
|
+
for (const [k, v] of request.headers) {
|
1028
|
+
span.setAttribute(ATTR_HTTP_REQUEST_HEADER(k), [v]);
|
1029
|
+
}
|
1030
|
+
}
|
1031
|
+
let response;
|
1032
|
+
try {
|
1033
|
+
response = await this.#fetch(request, { ...options, span });
|
1034
|
+
}
|
1035
|
+
catch (error) {
|
1036
|
+
span.setStatus({
|
1037
|
+
code: SpanStatusCode.ERROR,
|
1038
|
+
message: `${error}`,
|
1039
|
+
});
|
1040
|
+
logger.error("An error occurred while serving request {method} {url}: {error}", { method: request.method, url: request.url, error });
|
1041
|
+
throw error;
|
1042
|
+
}
|
1043
|
+
if (span.isRecording()) {
|
1044
|
+
span.setAttribute(ATTR_HTTP_RESPONSE_STATUS_CODE, response.status);
|
1045
|
+
for (const [k, v] of response.headers) {
|
1046
|
+
span.setAttribute(ATTR_HTTP_RESPONSE_HEADER(k), [v]);
|
1047
|
+
}
|
1048
|
+
span.setStatus({
|
1049
|
+
code: response.status >= 500
|
1050
|
+
? SpanStatusCode.ERROR
|
1051
|
+
: SpanStatusCode.UNSET,
|
1052
|
+
message: response.statusText,
|
1053
|
+
});
|
1054
|
+
}
|
1055
|
+
const url = new URL(request.url);
|
1056
|
+
const logTpl = "{method} {path}: {status}";
|
1057
|
+
const values = {
|
1058
|
+
method: request.method,
|
1059
|
+
path: `${url.pathname}${url.search}`,
|
1060
|
+
url: request.url,
|
1061
|
+
status: response.status,
|
1062
|
+
};
|
1063
|
+
if (response.status >= 500)
|
1064
|
+
logger.error(logTpl, values);
|
1065
|
+
else if (response.status >= 400)
|
1066
|
+
logger.warn(logTpl, values);
|
1067
|
+
else
|
1068
|
+
logger.info(logTpl, values);
|
1069
|
+
return response;
|
1070
|
+
});
|
1026
1071
|
});
|
1027
1072
|
}
|
1028
|
-
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData, }) {
|
1073
|
+
async #fetch(request, { onNotFound, onNotAcceptable, onUnauthorized, contextData, span, }) {
|
1029
1074
|
onNotFound ??= notFound;
|
1030
1075
|
onNotAcceptable ??= notAcceptable;
|
1031
1076
|
onUnauthorized ??= unauthorized;
|
1032
1077
|
const url = new URL(request.url);
|
1033
1078
|
const route = this.router.route(url.pathname);
|
1034
|
-
if (route == null)
|
1035
|
-
|
1036
|
-
|
1037
|
-
}
|
1079
|
+
if (route == null)
|
1080
|
+
return await onNotFound(request);
|
1081
|
+
span.updateName(`${request.method} ${route.template}`);
|
1038
1082
|
let context = this.#createContext(request, contextData);
|
1039
1083
|
const routeName = route.name.replace(/:.*$/, "");
|
1040
1084
|
switch (routeName) {
|
package/esm/federation/router.js
CHANGED
@@ -8,6 +8,7 @@ import { parseTemplate } from "url-template";
|
|
8
8
|
export class Router {
|
9
9
|
#router;
|
10
10
|
#templates;
|
11
|
+
#templateStrings;
|
11
12
|
#trailingSlashInsensitive;
|
12
13
|
/**
|
13
14
|
* Create a new {@link Router}.
|
@@ -16,6 +17,7 @@ export class Router {
|
|
16
17
|
constructor(options = {}) {
|
17
18
|
this.#router = new InnerRouter();
|
18
19
|
this.#templates = {};
|
20
|
+
this.#templateStrings = {};
|
19
21
|
this.#trailingSlashInsensitive = options.trailingSlashInsensitive ?? false;
|
20
22
|
}
|
21
23
|
/**
|
@@ -38,6 +40,7 @@ export class Router {
|
|
38
40
|
}
|
39
41
|
const rule = this.#router.addTemplate(template, {}, name);
|
40
42
|
this.#templates[name] = parseTemplate(template);
|
43
|
+
this.#templateStrings[name] = template;
|
41
44
|
return new Set(rule.variables.map((v) => v.varname));
|
42
45
|
}
|
43
46
|
/**
|
@@ -58,6 +61,7 @@ export class Router {
|
|
58
61
|
}
|
59
62
|
return {
|
60
63
|
name: match.matchValue,
|
64
|
+
template: this.#templateStrings[match.matchValue],
|
61
65
|
values: match.params,
|
62
66
|
};
|
63
67
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fedify/fedify",
|
3
|
-
"version": "1.3.0-dev.
|
3
|
+
"version": "1.3.0-dev.512+714fd9fa",
|
4
4
|
"description": "An ActivityPub server framework",
|
5
5
|
"keywords": [
|
6
6
|
"ActivityPub",
|
@@ -78,6 +78,8 @@
|
|
78
78
|
"dependencies": {
|
79
79
|
"@hugoalh/http-header-link": "^1.0.2",
|
80
80
|
"@logtape/logtape": "^0.8.0",
|
81
|
+
"@opentelemetry/api": "^1.9.0",
|
82
|
+
"@opentelemetry/semantic-conventions": "^1.27.0",
|
81
83
|
"@phensley/language-tag": "^1.9.0",
|
82
84
|
"asn1js": "^3.0.5",
|
83
85
|
"json-canon": "^1.0.1",
|
package/types/deno.d.ts
CHANGED
@@ -31,6 +31,8 @@ declare namespace _default {
|
|
31
31
|
"@hongminhee/aitertools": string;
|
32
32
|
"@hugoalh/http-header-link": string;
|
33
33
|
"@logtape/logtape": string;
|
34
|
+
"@opentelemetry/api": string;
|
35
|
+
"@opentelemetry/semantic-conventions": string;
|
34
36
|
"@phensley/language-tag": string;
|
35
37
|
"@std/assert": string;
|
36
38
|
"@std/async": string;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
/// <reference types="node" />
|
3
3
|
import * as dntShim from "../_dnt.shims.js";
|
4
|
+
import { type TracerProvider } from "@opentelemetry/api";
|
4
5
|
import { type AuthenticatedDocumentLoaderFactory, type DocumentLoader, type GetUserAgentOptions } from "../runtime/docloader.js";
|
5
6
|
import type { Actor, Recipient } from "../vocab/actor.js";
|
6
7
|
import { type LookupObjectOptions, type TraverseCollectionOptions } from "../vocab/lookup.js";
|
@@ -136,6 +137,12 @@ export interface CreateFederationOptions {
|
|
136
137
|
* @since 0.12.0
|
137
138
|
*/
|
138
139
|
trailingSlashInsensitive?: boolean;
|
140
|
+
/**
|
141
|
+
* The OpenTelemetry tracer provider for tracing operations. If not provided,
|
142
|
+
* the default global tracer provider is used.
|
143
|
+
* @since 1.3.0
|
144
|
+
*/
|
145
|
+
tracerProvider?: TracerProvider;
|
139
146
|
}
|
140
147
|
/**
|
141
148
|
* Configures the task queues for sending and receiving activities.
|
@@ -217,6 +224,7 @@ export declare class FederationImpl<TContextData> implements Federation<TContext
|
|
217
224
|
skipSignatureVerification: boolean;
|
218
225
|
outboxRetryPolicy: RetryPolicy;
|
219
226
|
inboxRetryPolicy: RetryPolicy;
|
227
|
+
tracerProvider: TracerProvider;
|
220
228
|
constructor(options: CreateFederationOptions);
|
221
229
|
startQueue(contextData: TContextData, options?: FederationStartQueueOptions): Promise<void>;
|
222
230
|
createContext(baseUrl: URL, contextData: TContextData): Context<TContextData>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../src/federation/middleware.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAG5C,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,cAAc,EAGnB,KAAK,mBAAmB,EAEzB,MAAM,yBAAyB,CAAC;AAMjC,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,mBAAmB,EAEx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of {@link Router.route} method.
|
13
|
+
* @since 1.3.0
|
14
|
+
*/
|
15
|
+
export interface RouterRouteResult {
|
16
|
+
/**
|
17
|
+
* The matched route name.
|
18
|
+
*/
|
19
|
+
name: string;
|
20
|
+
/**
|
21
|
+
* The URL template of the matched route.
|
22
|
+
*/
|
23
|
+
template: string;
|
24
|
+
/**
|
25
|
+
* The values extracted from the URL.
|
26
|
+
*/
|
27
|
+
values: Record<string, string>;
|
28
|
+
}
|
11
29
|
/**
|
12
30
|
* URL router and constructor based on URI Template
|
13
31
|
* ([RFC 6570](https://tools.ietf.org/html/rfc6570)).
|
@@ -38,10 +56,7 @@ export declare class Router {
|
|
38
56
|
* @returns The name of the path and its values, if any match. Otherwise,
|
39
57
|
* `null`.
|
40
58
|
*/
|
41
|
-
route(url: string):
|
42
|
-
name: string;
|
43
|
-
values: Record<string, string>;
|
44
|
-
} | null;
|
59
|
+
route(url: string): RouterRouteResult | null;
|
45
60
|
/**
|
46
61
|
* Constructs a URL/path from a path name and values.
|
47
62
|
* @param name The name of the path.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/federation/router.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;GAGG;AACH,qBAAa,MAAM;;
|
1
|
+
{"version":3,"file":"router.d.ts","sourceRoot":"","sources":["../../src/federation/router.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,qBAAa,MAAM;;IAMjB;;;OAGG;gBACS,OAAO,GAAE,aAAkB;IAOvC;;;;OAIG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI1B;;;;;OAKG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAUhD;;;;;OAKG;IACH,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI;IAe5C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,GAAG,IAAI;CAMnE;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IACpC;;;OAGG;gBACS,OAAO,EAAE,MAAM;CAI5B"}
|