This is the script you will need to get the start and end date of last quarter    $start_date = (new DateTime(‘first day of -‘ . (((date(‘n’) – 1) % 3) + 3) . ‘ month’))->format(‘Y-m-d’); # first day of previous quarter         $end_date = (new DateTime(‘last day of -‘ . (((date(‘n’) – 1) % 3) + 1) . ‘ month’))->format(‘Y-m-d’); # last day of previous quarter  Read More →

Sample data: 2024-06-04 12:22:44.140-04:00 DEBUG c.m.a.a.i.exporter.AgentSpanExporter – exporting span: SpanData{spanContext=ImmutableSpanContext{traceId=7315e28acf0b7ac821a6c135368c48ac, spanId=341e43ed1acc9776, traceFlags=01, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, parentSpanContext=ImmutableSpanContext{traceId=00000000000000000000000000000000, spanId=0000000000000000, traceFlags=00, traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=false}, resource=Resource{schemaUrl=null, attributes={service.name=”unknown_service:java”, telemetry.sdk.language=”java”, telemetry.sdk.name=”opentelemetry”, telemetry.sdk.version=”1.37.0″}}, instrumentationScopeInfo=InstrumentationScopeInfo{name=io.opentelemetry.tomcat-7.0, version=2.3.0-alpha, schemaUrl=null, attributes={}}, name=GET /**, kind=SERVER, startEpochNanos=1717518164122000000, endEpochNanos=1717518164126927840, attributes=AttributesMap{data={server.port=8080, applicationinsights.internal.item_count=1, user_agent.original=curl/7.29.0, http.response.status_code=404, network.protocol.version=1.1, thread.id=39, applicationinsights.internal.is_pre_aggregated=true, url.scheme=http, thread.name=http-nio-8080-exec-1, url.path=/suck, network.peer.port=53590, network.peer.address=1.1.1.1, server.address=servername, client.address=1.1.1.1, http.route=/**, http.request.method=GET}, capacity=128, totalAddedValues=16}, totalAttributeCount=16, events=[], totalRecordedEvents=0, links=[], totalRecordedLinks=0, status=ImmutableStatusData{statusCode=UNSET, description=}, hasEnded=true}Read More →

Login portal.azure.com , click on Resources Graph and run this query: resourcecontainers | where type == ‘microsoft.resources/subscriptions/resourcegroups’ | project name, id,subscriptionId,tags |project-rename rg_name=name,rg_id=id,rg_tags=tags | join kind=inner ( resourcecontainers | where type == ‘microsoft.resources/subscriptions’ | project name,subscriptionId,tenantId,tags | project-rename sub_tags=tags ) on subscriptionIdRead More →

Upgrading my container image from PHP7 to PHP8.2.4 , all the ext library seems the same, but when my ldap_bind function failed on php8 .Warning: ldap_bind(): Unable to bind to server: Can’t contact LDAP server in This is the fix RUN apt-get update && apt-get install -y libldap-commonRead More →