2023年3月11日 星期六
新聞媒體: 喜多公司生產之生鹽麴已正式上市
npm install --save \
@honeycombio/opentelemetry-node \
@opentelemetry/auto-instrumentations-node
curl \
-LO https://github.com/honeycombio/honeycomb-opentelemetry-java/releases/latest/download/honeycomb-opentelemetry-javaagent.jar
npm install --save \
@opentelemetry/RK0u9QbcOPeIMqHeQFOTrJ \
@opentelemetry/sdk-trace-web \
@opentelemetry/exporter-trace-otlp-http \
@opentelemetry/context-zone
npm install --save \
@opentelemetry/api \
@opentelemetry/sdk-trace-web \
@opentelemetry/exporter-trace-otlp-http \
@opentelemetry/context-zone
npm install --save \
@opentelemetry/instrumentation-xml-http-request \
@opentelemetry/instrumentation-fetch \
@opentelemetry/instrumentation-document-load \
@opentelemetry/instrumentation-user-interaction \
@opentelemetry/instrumentation-long-task \
SERVICE_NAME=my-favorite-service
HONEYCOMB_API_KEY=RK0u9QbcOPeIMqHeQFOTrJ
HONEYCOMB_METRICS_DATASET=my-metrics
sample.rate=2
service.name=my-favorite-service
honeycomb.api.key=RK0u9QbcOPeIMqHeQFOTrJ
honeycomb.metrics.dataset=my-metrics
HONEYCOMB_CONFIG_FILE=/path/to/properties/file
java \
-javaagent:honeycomb-opentelemetry-javaagent.jar \
-jar /path/to/myapp.jar
java \
-Dhoneycomb.config.file=/path/to/properties/file \
-javaagent:honeycomb-opentelemetry-javaagent.jar -jar /path/to/myapp.jar
// tracing.js
import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http';
import { WebTracerProvider, BatchSpanProcessor } from '@opentelemetry/sdk-trace-web';
import { ZoneContextManager } from '@opentelemetry/context-zone';
import { Resource } from '@opentelemetry/resources';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import { XMLHttpRequestInstrumentation } from '@opentelemetry/instrumentation-xml-http-request';
import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch';
{
...
"Honeycomb": {
"ServiceName": "my-app",
"ApiKey": "RK0u9QbcOPeIMqHeQFOTrJ"
}
}
using OpenTelemetry.Trace;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllers();
var honeycombOptions = builder.Configuration.GetHoneycombOptions();
// Setup OpenTelemetry Tracing
builder.Services.AddOpenTelemetry().WithTracing(otelBuilder =>
{
otelBuilder
.AddHoneycomb(honeycombOptions)
.AddCommonInstrumentations();
});
// Register Tracer so it can be injected into other components (eg Controllers)
builder.Services.AddSingleton(TracerProvider.Default.GetTracer(honeycombOptions.ServiceName));
var app = builder.Build();
app.MapGet("/", (Tracer tracer) =>
{
using var span = tracer.StartActiveSpan("app.manual-span");
span.SetAttribute("app.manual-span.message", "Adding custom spans is also super easy!");
});
app.Run();
dotnet run
新聞媒體: 喜多公司生產之生鹽麴已正式上市: 喜多公司生產之生鹽麴已正式上市 可嫩化魚.肉.蛋 醃後下鍋軟嫩Q彈美味可口 少鹽.無糖.無味精. 是廚藝界魔法調味師. 是16世紀日本廚藝流傳至寶 也是世界主廚界最熱門之話題 適合中.西.義.日餐廳.快炒餐廳.自助餐廳.火鍋餐廳.燒烤餐廳......... 也適合一般家庭享用...
訂閱:
張貼留言 (Atom)
good
Name: Email: Phone: Address: City: State: Zip: Country: hello nice to see you all today eggsoil: Powered by AIOP cp=1189...
-
https://www.facebook.com/profile.php/?id=100044214050354&name=xhp_nt__fb__action__open_user
-
海山蜜餞廠梅子專家梅粉(600g) $160 $179 折價券 ★嚴選加工精緻 ★酸酸甜甜好滋味 1 追蹤 加入購物車 立即購買 ★商品特色 嚴選加工精緻 酸酸甜甜好滋味 ★商品成分 青梅 添加物: 鹽,糖,甜味劑(醋磺內酯鉀.蔗糖素.紐甜.糖精鈉鹽. 環己基磺胺硫酸鈉).甘草...
-
npm install --save \ @honeycombio/opentelemetry-node \ @opentelemetry/auto-instrumentations-node curl \ -LO https://github.co...
沒有留言:
張貼留言