UNPKG
@wundergraph/apollo-to-cosmo-metrics
Version:
latest (0.2.0)
0.2.0
0.1.1
0.1.0
An apollo gateway plugin that exports schema usage metrics to cosmo
@wundergraph/apollo-to-cosmo-metrics
/
dist
/
plugin
/
exporter.d.ts
6 lines
(5 loc)
•
284 B
TypeScript
View Raw
1
2
3
4
5
6
import
{
type
ApolloServerPlugin
}
from
'@apollo/server'
;
import
{
type
CosmoClient
}
from
'./cosmo-client.js'
;
export
interface
Context
{ }
export
declare
function
cosmoReportPlugin
(
client
:
CosmoClient
,
reportIntervalMs
?:
number
,
maxQueueSize
?:
number
):
ApolloServerPlugin
<
Context
>;