@@ -396,34 +396,24 @@ def create(
396
396
self .telemetry .record_event_async (
397
397
category = "aqua/custom/deployment" , action = "create" , detail = model_name
398
398
)
399
- # tracks the shape used for deploying the custom models
400
- self .telemetry .record_event_async (
401
- category = "aqua/custom/deployment/create" ,
402
- action = "shape" ,
403
- detail = instance_shape ,
404
- )
405
399
# tracks the shape used for deploying the custom models by name
406
400
self .telemetry .record_event_async (
407
- category = f"aqua/custom/{ model_name } / deployment/create" ,
401
+ category = f"aqua/custom/deployment/create" ,
408
402
action = "shape" ,
409
403
detail = instance_shape ,
404
+ value = model_name
410
405
)
411
406
else :
412
407
# tracks unique deployments that were created in the user compartment
413
408
self .telemetry .record_event_async (
414
409
category = "aqua/service/deployment" , action = "create" , detail = model_name
415
410
)
416
- # tracks the shape used for deploying the service models
417
- self .telemetry .record_event_async (
418
- category = "aqua/service/deployment/create" ,
419
- action = "shape" ,
420
- detail = instance_shape ,
421
- )
422
411
# tracks the shape used for deploying the service models by name
423
412
self .telemetry .record_event_async (
424
- category = f "aqua/service/ { model_name } /deployment/create" ,
413
+ category = "aqua/service/deployment/create" ,
425
414
action = "shape" ,
426
415
detail = instance_shape ,
416
+ value = model_name
427
417
)
428
418
429
419
return AquaDeployment .from_oci_model_deployment (
0 commit comments